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
精彩评论