| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2005
Posts: 1
|
Javascript Problem in FireFox
Hi ive written a piece of javascript to detect the users screen res and display a different sized logo image depending on the res. The code works fine in Internet Explorer but doesn't work in FireFox. Code:
Any ideas why? |
|
|
|
|
|
#2 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
not sure, might be something to do with the width not being exactly 1024 wide, maybe try: window.screen.width>1000 rather than trying to guess the exact size - seems a pretty weird thing to be doing anyway. surely it should be the other way round anyway - if 800x600 then display small image, else, large image - what happens if your resoution is different from either of those specified in the script? |
|
![]() |