Hi Guys
The script below works perfectly in Mozilla, but not in IE... any
ideas?
It specifies a specific style sheet for 3 types of resolutions.
---------------------------------------------------------------------------
var myWidth = 0;
if( typeof(window.innerWidth) == 'number' ) {
myWidth = window.innerWidth;
}else if(typeof(document.documentElement.clientWidth) == 'number'){
myWidth = document.documentElement.clientWidth;
}else if(typeof(document.body.clientWidth) == 'number'){
myWidth = document.body.clientWidth;
}
if (myWidth <= 1280) {
document.write('<link rel="stylesheet" type="text/css"
href="about_1280.css">');
}
if (myWidth <= 1024) {
document.write('<link rel="stylesheet" type="text/css"
href="about_1024.css">');
}
if (myWidth <= 800) {
document.write('<link rel="stylesheet" type="text/css"
href="about_800.css">');
}
------------------------------------------------------------------------
Thanks
K