Scriptet får du da bare:
Se om du kan bruge det
<!-- THREE STEPS TO INSTALL RESOLUTION PAGE:
1. Paste the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document
3. Be sure to update the resolution pages to ones on your site -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://javascript.internet.com -->
<!-- Begin
function redirectPage() {
var url640x480 = \"
http://www.yoursite.com/640x480\";var url800x600 = \"
http://www.yoursite.com/800x600\";var url1024x768 = \"
http://www.yoursite.com/1024x768\";if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<center>
<form>
<input type=button value=\"Enter!\" onClick=\"redirectPage()\">
</form>
</center>
<!-- STEP THREE: Don\'t forget to update the URLs in the code above! -->
<p><center>
<font face=\"arial, helvetica\" size=\"-2\">Free JavaScripts provided<br>
by <a href=\"
http://javascriptsource.com\">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.29 KB -->