|
| |
|
|
reformed hater
Posts: 167 Joined: 2/1/2006 From: The land of sun and hurricanes; US Status: offline
|
silly noob CSS question - 4/20/2006 17:27:26
How do I launch a second style page.... I want the user (in this case my boss) to just hit a button and get the alt style please don't say it's as easy as doing a second link...
_____________________________
When asked what the White House was like by a British student George W. Bush responded “It is White"
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: silly noob CSS question - 4/21/2006 3:54:11
There are Javascript versions and PHP versions going back a couple of years or so. I've implemented both and found the "original" Paul Sowden stylesheet switcher a bit of a pain to implement if you're fairly new to the subject. It certainly works fine - it does take a bit of yelling and shouting at the computer to get it to work (ask Womble). If you have PHP on your webserver then I've got an incredibly easy PHP switcher (given to me by a certain new member of this forum) which I use on my site. I can't tell you how easy it was to get working. Took five minutes.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Tailslide
Posts: 6290 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: silly noob CSS question - 4/21/2006 6:44:30
Only thing is that because the stylesheet is called via a @import rather than a link, you'll want to ensure you've got a link in the head somewhere (favicon or maybe a print stylesheet?) just to ensure you don't get any naughty FOUC action.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|