View previous topic :: View next topic |
Author |
Message |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sun Nov 05, 2006 9:31 am Post subject: Changing color using javascript |
|
|
I use external CSS on my site, i have made multiple versions of this all with different colors. What i want to do is make buttons somewhere on my page to allow users to change the background color. Im thinking that i can do this using javascript.
here is the head part of my page:
Code: |
<head>
<title>: Select which server :</title>
<link rel="stylesheet" type="text/css" href="/server stuff/Images/images188/red_b.css">
<link rel="shortcut icon" href="http://68.55.75.14/server stuff/Images/favicon.ico" type="image/x-icon">
<link rel="icon" href="http://68.55.75.14/server stuff/Images/favicon.ico" type="image/x-icon">
</head>
|
What i want to do is change the red_b.css in the first link tag
EX: when a user clicks the blue button the link part will change from red_b.css to blue_b.css
If this is possible can someone please post the code i would use, thnx :D _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
|
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
|
Back to top |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sun Nov 05, 2006 10:02 pm Post subject: |
|
|
thnx :D _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
|
|