HighDots Forums  

CSS: How do I turn on and off stylesheet from a webpage?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS: How do I turn on and off stylesheet from a webpage? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sara Taylor
 
Posts: n/a

Default CSS: How do I turn on and off stylesheet from a webpage? - 07-16-2004 , 09:15 AM






I was wondering if you could help me?

Is there an easy way to be able to turn on and off a stylesheet from my
webpage? I would like to do this so people can have a textual version to
view if they prefer.

I did find a clever javascript function for this but alas this does not
validate as it does not recognise the 'disabled' ID:
http://www.quirksmode.org/js/cssdisable.html

Any suggestions?

Thanks a lot



Reply With Quote
  #2  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: How do I turn on and off stylesheet from a webpage? - 07-16-2004 , 01:15 PM






Sara Taylor wrote:
Quote:
I was wondering if you could help me?

Is there an easy way to be able to turn on and off a stylesheet from
my webpage? I would like to do this so people can have a textual
version to view if they prefer.

I did find a clever javascript function for this but alas this does
not validate as it does not recognise the 'disabled' ID:
http://www.quirksmode.org/js/cssdisable.html

Any suggestions?
Hi Sara,

This technique might work for you:
http://www.projectseven.com/tutorials/css/cssdisable/demo.htm

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/






Reply With Quote
  #3  
Old   
Sara Taylor
 
Posts: n/a

Default Re: How do I turn on and off stylesheet from a webpage? - 07-16-2004 , 05:08 PM



Al that is exactly what I was looking for

Thanks so much.

Sara



Reply With Quote
  #4  
Old   
Sara Taylor
 
Posts: n/a

Default Re: How do I turn on and off stylesheet from a webpage? - 07-16-2004 , 05:37 PM



I wrote before I could speak

Is there anything I need to change in the javascript to get it to work or on
the 'onclick' states?

Thanks



Reply With Quote
  #5  
Old   
John Waller
 
Posts: n/a

Default Re: How do I turn on and off stylesheet from a webpage? - 07-16-2004 , 09:23 PM



Another good option I've seen is the Toggle CSS style sheets favelet:

http://tantek.com/favelets/

--
Regards

John Waller



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.