Hey,
I've got some script from varies places played with it, added me own bits and such (first time working with JS by the way) so that a webpage will detect the screen resolution and change the page accordingly for the activdesktop at the school i work at.
First it told me that I needed to add a ";" (highlighted in red), aha simple I thought, I added the semi colon where it said to do.
Now it's telling me that the object doesn't support this action. I've been goin around and around like this for the past few days and have now decided that I shall have to durrender and ask for help.
I know this will be something rather simple that I have missed and shall no doubt kick myself when someone solves it.
Code:<script type="text/javascript"> <!-- if (screen.width <= 1024) { window.location = '1024x768.html'; } else if (screen.width <= 1280) { window.location = '1280x1024.html'; } else if (screen.width <= 1440); { window.location = '1440x900.html'; } else { window.location='index2.html'; } //--> </script>



Reply With Quote

Bookmarks