|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How can i use two css ?
How can i use two css and switch them at just one mouse click
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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! Last edited by ChiefWigs1982 : December 4th, 2003 at 05:01 AM. |
|
#4
|
||||
|
||||
|
__________________
new jersey web design |
|
#5
|
||||
|
||||
|
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!> |
|
#6
|
||||
|
||||
|
It also uses the exact same code...
Quote:
BTW, sorry, I looked at you. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > How can i use two css ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|