Adjust to your needs ofc. Working example
View source to see full code, just in case, here it is:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Change bg link</title>
<style type="text/css">
body {
<?
$random_image_value = rand(1,3);
echo "background-image: url('image". $random_image_value .".jpg');";
?>
}
</style>
<head>
<body>
When you reload this page, a random image between 1-3 should pop..
</body>
</html>
__________________
NorthCube, Webtechnology from the north.
Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE .
To avoid criticism do nothing, say nothing, be nothing. - Elbert Hubbard, 1856 - 1915.