hello all
I have a javascript redirect to a style sheet on screen resolution check in the .<head>. of my webpage, it works fine in IE, but not in Firefox.
<SCRIPT language=JavaScript>
//document.write(‘Your settings are ‘ + screen.width + ‘ x ‘ + screen.height + ”);
if (screen.width == 640) {document.write(‘<link rel=”stylesheet” type=”text/css” href=”640.css”>’);}
if (screen.width == 800) {document.write(‘<link rel=”stylesheet” type=”text/css” href=”800.css”>’);}
if (screen.width == 1024) {document.write(‘<link rel=”stylesheet” type=”text/css” href=”1024.css”>’);}
if (screen.width == 1280) {document.write(‘<link rel=”stylesheet” type=”text/css” href=”1280.css”>’);}
if (screen.width == 1600) {document.write(‘<link rel=”stylesheet” type=”text/css” href=”1600.css”>’);}
</SCRIPT>
any ideas why it doesn’t work in Firefox are appreciated
thanx
peace