 |
 |
Safari redirect to alternate CSS
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2002
Status:
Offline
|
|
How can I redirect Safari users to an alternate CSS using Javascript on websites?
ie (no pun intended) I want all other browser users to use the main CSS and Safari users to use safari.css
All ideas gratefully recieved!
Cheers!
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Dave Hyatt's Weblog had something on this on January 15. There's a Safari-specific JavaScript function you can use to change the selected stylesheet. Use this in your onLoad event, and that should suffice.
http://www.mozillazine.org/weblogs/hyatt/
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2002
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator Emeritus 
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
Originally posted by m.brown:
------
What kind of an answer is that? Did it help you or not?
By the way, it's just rude to have your websites load differently depending on which browser they have. Not only is it easily faked, but you punishing/rewarding people for certain browsers. I dislike the idea.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2001
Location: East of Belfast Furry Animal Sanctuary
Status:
Offline
|
|
Originally posted by Xeo:
What kind of an answer is that? Did it help you or not?
By the way, it's just rude to have your websites load differently depending on which browser they have. Not only is it easily faked, but you punishing/rewarding people for certain browsers. I dislike the idea.
 damn right!
Which I know ain't much of a response but since this morning i've been trying to designa site to work seamlessly across as many browsers as i can with one stylesheet and a few graphic workarounds, it seems daft to over compliacte the issue. I thought we were designing for people not browsers (raise your handbags now and shout ooooooooooooh!)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: Helsinki, Finland
Status:
Offline
|
|
I'll have to defend browser spesific stylesheets just a bit - NS4 has caused me all kinds of probs, which I have gladly taken care of with an alternate CSS file.
The other options would be to indeed design on NS4's terms, or even worse, to ignore its users.
J
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |