backround change on click, whats the code??? |
backround change on click, whats the code??? |
Aug 6 2004, 11:09 PM
Post
#1
|
|
|
I C DEAD PEOPLE ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 728 Joined: Jul 2004 Member No: 36,002 |
whats the code for background change on click??
|
|
|
|
![]() |
Aug 6 2004, 11:14 PM
Post
#2
|
|
![]() i LUST you. <3 ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 709 Joined: Jun 2004 Member No: 22,299 |
Hmm. I know there's a code for a different background everytime you refresh (http://www.createblog.com/forums/index.php?showtopic=9547). What do you mean by click? Like just click anywhere on the page and a new background will show?
|
|
|
|
Aug 7 2004, 10:08 AM
Post
#3
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 63 Joined: Aug 2004 Member No: 36,605 |
i think they mean background change when clicking a link .. gahh i had that code before .. it changed ff8 wallpapers and the code is similar to the dropdown menu playlist .. ill post the code when i find it
|
|
|
|
Aug 7 2004, 10:23 AM
Post
#4
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 63 Joined: Aug 2004 Member No: 36,605 |
ok try this code:
paste this code in html header, replace IMAGE URL with the url of the image CODE <!-- begin code provided by createblog.com --> <script language="JavaScript"> <!-- var backImage = new Array(); backImage[0] = "IMAGE URL"; backImage[1] = "IMAGE URL"; backImage[2] = "IMAGE URL"; backImage[3] = "IMAGE URL"; // Do not edit below this line. //----------------------------- function changeBGImage(whichImage){ if (document.body){ document.body.background = backImage[whichImage]; } } //--> </script> <!-- end code provided by createblog.com --> paste this code where you want the link change to be, replace (1) with the corresponding number in the [] in the script .. replace 'Change' with what you want the link to say CODE <!-- begin code provided by createblog.com --> <a href="javascript:changeBGImage(1)">Change</a> <!-- end code provided by createblog.com --> to add more images, just copy the pattern the code was on my friends website woo! let me know how it goes |
|
|
|
Aug 7 2004, 02:15 PM
Post
#5
|
|
![]() Bardic Nation ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,113 Joined: Aug 2004 Member No: 38,059 |
if u ever forget that code or it gets messed up due to some tinkering, try http://dynamicdrive.com. Its called the live background previewer.
|
|
|
|
![]() ![]() |