it works fine in IE but doesnt work at all in Firefox, can anyone tell me how I can get it working in firefox.
In IExplorer, you have to the document.documentElement.clientHeight and the document.documentElement.clientWidth properties. In all other browsers, including firefox, use the window.innerWidth and window.innerHeight properties. To diifer between the two browsers, use the code: if(navigator.appName == "Microsoft Internet Explorer")
//clientWidth properties and code here
//innerWidth properties and code here
I was having the same problem with this script, and it was driving me crazy! I compared the source code on the Dynamic Drive demo page, and combed through it to find the problem. The problem is not with the script itself, but with the DOCTYPE tag at the top of your page. Remove the <DOCTYPE> tag completely. The tag should read <html>, and then the script should work fine in Firefox.
well what elements and attttributes atre being phased out ?
so i dont have to worry about it and just avoid them instead where can i get this kind of information on the ones that are being fased out does anyone know? caus ei hate doctypes