Heya,
I was wondering if anyone knows the php code and script for a background change plz thanks :)
+ rep btw
Printable View
Heya,
I was wondering if anyone knows the php code and script for a background change plz thanks :)
+ rep btw
Theres a javascript one here;
http://www.codebelly.com/javascript/...lorchange.html
cheers anyone else i need like a image background one not colors
There's this thing, that was made for situations like this, uhm what's it called...oh yeah GOOGLE.
That's a working one off CodeBelly, (Hint: I used Google). See the result: http://users.decrypterlive.com/~andre/bg/index.htmCode:<html>
<head>
<title>BG Changer</title>
<STYLE type="text/css">
img{
border-color: black;
border-width:1px;
}
</style>
</head>
<body background="green.png">
<script language="JavaScript">
<!--
// Copyright 2001 by www.CodeBelly.com
// Please do *not* remove this notice.
var backImage = new Array(); // don't change this
// Enter the image filenames you wish to use.
// Follow the pattern to use more images. The
// number in the brackets [] is the number you
// will use in the function call to pick each
// image.
// Note how backImage[3] = "" -- which would
// set the page to *no* background image.
backImage[0] = "blue.png";
backImage[1] = "yellow.png";
backImage[2] = "green.png";
backImage[3] = "";
// Do not edit below this line.
//-----------------------------
function changeBGImage(whichImage){
if (document.body){
document.body.background = backImage[whichImage];
}
}
//-->
</script>
<a href="javascript:changeBGImage(0)"><img src="blue_select.PNG" border="0" alt="Blue"></a>
<br>
<a href="javascript:changeBGImage(1)"><img src="yellow_select.PNG" border="0" alt="Blue"></a>
<br>
<a href="javascript:changeBGImage(2)"><img src="green_select.PNG" border="0" alt="Blue"></a>
</body>
</html>
thnx for posting I was looking for this +rep
Woah. didnt know the javascript to change background was that simple :S