Click to See Complete Forum and Search --> : Redirect to a specific browser resolution


emmabison
01-29-2003, 12:38 PM
I need a bit a of help.

I currently have a page that needs to send visitors to different pages depending on their browser resolution. The visitor has to click to the new page via an image button.

I have found javascript code that would allow me to redirect via text, system button and automatic redirect but not via an image.

I have tried changing the system button code for a SRC= code (as I have done successfully in shoping carts for buy buttons) but it then only registeres the position/size of the button not the visitors screen resolution.

If anyone can help I would be most grateful.

Emma

David Harrison
01-29-2003, 02:23 PM
how do you detect their browser resolution?

khalidali63
01-29-2003, 02:58 PM
Here check this out.you can see a good deal of info about how to get information about a browser.

http://68.145.35.86/skills/javascripts/BrowserData.html

once you get the resolution then you can use a set of If/else statement to redirect to any other page.

var width=
vat height;

if(width==1024 && height==768){
document.location.href=appropriatePage.html
}

cheers
Khalid