Javascripts > Javascript Redirects > Detect Resolution
Script Title: Detect Resolution
Description: Find out the resolution of your visitors browsers!
Example: No example available for this script.
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript1.2"> /* Screen Resolution Redirect © Eddie Traversa (nirvana.media3.net) To add more shock to your site, visit www.DHTMLShock.com */ function ScreenGoToURL(Big,Medium) { var screen_height = screen.height; var screen_width = screen.width; var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48; if (screen_height >= 768) { screen_width = 1024; screen_height = 768; var window_width = 1024-12; var window_height = 768-buffer; var window_top = 0; var window_left = 0; window.open(Big,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ''); } else { screen_width = 800; screen_height = 600; var window_width = 800-12; var window_height = 600-buffer; var window_top = 0; var window_left = 0; window.open(Medium,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ''); } } </script>
Copy the following code INTO your <BODY> tag.<BODY onLoad="ScreenGoToURL('1024x768.html','800x600.html')">
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email