Domi
07-21-2006, 02:41 PM
I would like to know the code for changing the background on my site.
|
||||
Web backgroundDomi 07-21-2006, 02:41 PM I would like to know the code for changing the background on my site. VIPStephan 07-21-2006, 05:34 PM You mean the background color? You can do that with JavaScript. And you would include that in a link I guess: <a href="#" onclick="document.bgColor='green'; return flase;">link</a> Bill Posters 07-21-2006, 05:48 PM You mean the background color? You can do that with JavaScript. And you would include that in a link I guess: <a href="#" onclick="document.bgColor='green'; return flase;">link</a> bgColor? Were you born in a barn? ;) At least give the guy something from this century (and typed correctly). ;) - - - OP, you can use CSS to set a different default background colour for your page(s). http://www.w3schools.com/css/default.asp http://www.w3schools.com/css/css_reference.asp#background http://www.w3schools.com/css/css_background.asp If you want to dynamically change it from one colour to another, then you can use javascript… … onclick="document.getElementsByTagName('body')[0].style.backgroundColor='green'; return false;"… For something more permanent, take a look at javascript styleswitchers (http://www.google.com/search?q=javascript+styleswitcher) and php styleswitchers (http://www.google.com/search?q=php+styleswitcher) VIPStephan 07-23-2006, 12:39 PM Well. I don't know... I found this somewhere some time ago and it worked but I actually never used it. I'm not a big JavaScript nut. Sorry for giving a wrong advice. :o |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum