When users visit your page, JavaScript will determine their screen's resolution and redirect them to the page of your site that you wrote for that screen size!
NOTE: There are no valid URL's to redirect to, you'll need to put some in.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- 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; elseif((screen.width==800)&&(screen.height==600)) window.location.href=
url800x600; elseif((screen.width==1024)&&(screen.height==768)) window.location.href=
url1024x768; elsewindow.location.href=
url640x480;
} // End --> </script> <form>
<input
type=buttonvalue="Enter!"onClick="redirectPage()">
</form>