|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
|
Javascript Screen Res detection question
I was wondering if i could write an if else javascript that would use one stylesheet for one resolution and one for another....like one script for 1024x768 and one for anything lower than that?
|
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
PHP Code:
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (7 bit)
|
im sorry if my original post was a bit unclear. I was wondering though, if there was a way to write a script so if the resolution was say 800x600 it would include one style sheet or if it was higher than that it would include another. Or is the only way to do that is to have seperate html files for each one and redirect them accordingly? Sorry again for the confusion.
- deeye |
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
I don't know if there is way to load different CSS files. The most common way to handle different screen sizes is by a redirection to different html files.
|
|
|
|
|
|
#6 |
|
Member (7 bit)
|
once again marving BRAVO! That was exactly what i was talking about. thanks!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|