CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 2003, 03:44 AM
dotcommakers's Avatar
dotcommakers dotcommakers is offline
Freelance Webdesigner
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 37 dotcommakers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 29 m 7 sec
Reputation Power: 5
How can i use two css ?

How can i use two css and switch them at just one mouse click

Reply With Quote
  #2  
Old December 3rd, 2003, 04:43 AM
Arden's Avatar
Arden Arden is offline
HTML/CSS/Photoshop maven
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: CA
Posts: 184 Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to Arden
I don't know the exact code to do this, but you can set a link to change the HTML of a <link> tag to one stylesheet or another.

Reply With Quote
  #3  
Old December 3rd, 2003, 04:53 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Jul 2003
Location: I used to live at home, now I stay at the house
Posts: 9,890 ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)ChiefWigs1982 User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 13 h 45 m 3 sec
Reputation Power: 807
Facebook
Code:
<html>
<head>
<link rel=StyleSheet href="one.css" title="Contemporary" id="one">
</head>
<body>
<a href="#" onClick="document.getElementById('one').href='two.css';">Two</a><br>
<a href="#" onClick="document.getElementById('one').href='one.css';">One/a>
</body>
</html>

Or something along those lines...
__________________
Support requests via PM will be ignored!
Sites: Route of Queue | Sinthetic - Alternative UK Hiphop
Read These: The General Rules Thread | The General FAQ Thread | NEW USERS - How to post a question

Sign up with Matched.co.uk and earn up to £15 per website every month!


Last edited by ChiefWigs1982 : December 4th, 2003 at 05:01 AM.

Reply With Quote
  #4  
Old December 3rd, 2003, 12:18 PM
stinkoman's Avatar
stinkoman stinkoman is offline
what's your moniker?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Highland Park, NJ
Posts: 201 stinkoman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to stinkoman
here's a nice open source style sheet switcher

http://www.alistapart.com/articles/alternate/
__________________
new jersey web design

Reply With Quote
  #5  
Old December 4th, 2003, 04:55 AM
Eye_movement's Avatar
Eye_movement Eye_movement is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: England
Posts: 32 Eye_movement User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 8 sec
Reputation Power: 5
Send a message via MSN to Eye_movement
And another nice 1. But its using javascript as well. But works really well.

You will be best off download the JS file to edit it

http://templates.fogcreek.com/styleswitch/
__________________
<NO DONT LOOK AT ME!>

Reply With Quote
  #6  
Old December 5th, 2003, 01:11 AM
Arden's Avatar
Arden Arden is offline
HTML/CSS/Photoshop maven
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: CA
Posts: 184 Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level)Arden User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to Arden
It also uses the exact same code...
Quote:
Originally Posted by Eye's link


BTW, sorry, I looked at you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > How can i use two css ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway