Now You See It, Now You Don't, In need of an if/then
Now You See It, Now You Don't, In need of an if/then
InfiniteWarrior |
Oct 2 2005, 02:58 PM
Post
#1
|
Emperor Group: Members Posts: 800 Joined: 21-June 03 Member No.: 20 |
For the option to turn styles off and on, I'm using this little snippet:
CODE <?php if( $_GET['css'] != 'false' ) { ?> <link rel="stylesheet" href="style.css" type="text/css" /> <?php } ?> ... and the links: CODE <a href="?css=false">Styles Off</a> | <a href="?css=true">Styles On</a> ... meaning both links are visible at all times. What I'd like to do is make one or the other disappear depending on which has been selected: "Styles Off" becomes "Styles On" and vice versa. Any of you youngsters wanna help out an old lady? |
Kyzene |
Oct 2 2005, 06:51 PM
Post
#2
|
Master Group: -=RJ=-Clan Posts: 498 Joined: 18-June 03 Member No.: 13 |
Reading all that crazyness made my brain hurt. C++ is so much more...normal
-------------------- There is no such thing as luck, only mistakes and the people that take advantage of them.
Play Wild Jedi CTF in JA. Visit Chop Shop for crazy CTF action. Become a Pastafarian. |
Lo-Fi Version | Time is now: 19th April 2024 - 07:46 AM |