This is a discussion on "Alternative CSS Selection (IE)" within the Web Page Design section. This forum, and the thread "Alternative CSS Selection (IE) are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Alternative CSS Selection (IE)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Alternative CSS Selection (IE)
Hello.
I am wanting to allow users to change css stylesheets on my webpage, using links. I have been following information from: http://www.alistapart.com/articles/alternate/ but it doesn't explain how to set up the links. I have two style sheets set up and I have added the Javascript to the page (see below) How do I set up the <a href .. link to change the style sheet? and which variables do I update in the Javascript please?
|
|
|
|
#2
|
||||
|
||||
|
Here's what I did on my site, and it works perfectly:
This is in a file called styleswitcher.js:
And here are the actual links which allow a visitor to choose:
|
|
#3
|
|||
|
|||
|
Thanks very much for this
|
|
#4
|
||||
|
||||
|
Quote:
|
![]() |
| Tags |
| alternative, css, selection |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Selection in ASP | wbeetge | Starting Out | 0 | Oct 3rd, 2007 16:10 |
| Forced Selection In a popup window | Jamie18 | JavaScript Forum | 0 | Jun 18th, 2007 18:58 |
| Content Appears Based on Drop-Down Menu Selection | WiseWizards | JavaScript Forum | 3 | Aug 9th, 2005 17:48 |
| Alertnative CSS selection using Javascript (IE) | Andy K | JavaScript Forum | 1 | Jul 20th, 2005 11:10 |
| IE6 Text selection bug | Smokie | Web Page Design | 9 | Jun 1st, 2005 20:12 |