English 中文(简体)
msSiteModeActivate似乎没有工作
原标题:msSiteModeActivate does not seem to work

Hi I m从事一些IE9任务商品整合工作,但我似乎可以找到<条码>。

我的法典:

setTimeout("tvOverlay()", 30000);
setTimeout("tvActivate()", 35000);

        <script type="text/javascript">
            function tvActivate() {
                try {
                    if (window.external.msIsSiteMode()) {
                        window.external.msSiteModeActivate();                    
                    }
                    else { }
                }
                catch (e) { }
            }
            function tvOverlay() {
                try {
                    if (window.external.msIsSiteMode()) {
                        window.external.msSiteModeSetIconOverlay( /tvoverlaygul.ico ,  TV Overlay );
                    }
                    else { }
                }
                catch (e) { }
            }            
        </script>

<tvOverlay(>,但icon在tvActivate()时从未闪过。

问题回答

你们是否试图这样做? 例如。 如果现有窗口已经作为附设地点运行,则以下文字转至一页。 <代码>try/ Salt/code>说明允许在浏览器不支持这一呼吁的情况下,该笔记本可追溯。

另见msSiteModeActivate上的更多信息:

最新资料:新文件:

http://blogs.msdn.com/b/ie/archive/2011/01/17/working-with-pinned-sites.aspx

function testSiteMode()
{
    try {
        if (window.external.msIsSiteMode()) {
            location.href = startPage;
        }
    }
    catch(ex) {
        alert("Site Mode is not supported.");
        return;
    }
}
window.onload = testSiteMode;




相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签