开发者

Javascript layers and Chrome browser

I working on an application which is using layers to show header and it remains fixed even when the user scrolls to the bottom of th开发者_JAVA技巧e page. It works fine in IE. Below is a piece of code for making to to work in Chrome.

        strLayer += "Data for layer";

        baseLayer = new Layer(window.innerWidth);

        baseLayer.document.open();
        baseLayer.document.write(strLayer);
        baseLayer.document.close();
        baseLayer.visibility = "show";

When I use the above code, I get 'layer is not defined' error. Can anyone let me know if the code makes sense? for Chrome

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜