Log in

View Full Version : Javascripts and browsers


Trev
11-05-2003, 08:39 AM
I've got a Javascript that detects different types of browsers and such but I'm looking for a script that detects different screen sizes and resolutions. I've hunted all over and just can't seem to find one, anyone know if one exists?

sarettah
11-05-2003, 08:40 AM
Originally posted by Trev@Nov 5 2003, 08:47 AM
I've got a Javascript that detects different types of browsers and such but I'm looking for a script that detects different screen sizes and resolutions. I've hunted all over and just can't seem to find one, anyone know if one exists?
They are out there.... Fairly easy thing to do....

I have to run, but if no one has posted a link for you by the time I am at the sweatshop, I will find one for ya...

:yowsa:

edited in: had a brainfart in my original answer....you don't need a script

the screen.width and screen.height properties will do it for you.





Last edited by sarettah at Nov 5 2003, 08:51 AM

Trev
11-05-2003, 08:42 AM
Cheers Sarettah, :okthumb:

If they're out there I must really suck at finding things online lol :unsure:

Trev
11-05-2003, 08:45 AM
DOH!!!!

Scratch this thread I found one over at : javascript.internet.com



I'll be the official moron of the day <_<

sarettah
11-05-2003, 08:46 AM
Originally posted by Trev@Nov 5 2003, 08:50 AM
Cheers Sarettah, :okthumb:

If they're out there I must really suck at finding things online lol :unsure:
I edited in up above, just posting to bump it to get you to look :)

some scripts demoing it

http://www.cgiscript.net/site_javascripts_...s_user_info.htm (http://www.cgiscript.net/site_javascripts_user_info.htm)

Trev
11-05-2003, 09:04 AM
Thanks man :okthumb: :D


The whole issue is because I was looking at one of our drafts on my new monitor and it was tiny at 800x600 when I'm viewing at 1024x768 so I want to have designs for most resolutions and a javascript to redirect as needed.


Cheers again :)