开发者

Javascript layers and Chrome browser

开发者 https://www.devze.com 2023-03-08 02:41 出处:网络
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

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

精彩评论

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