Hi there, please someone suggest a php code for changing site background image/color in every 30 minutes... I have 10 images 1.jpg to 10.jpg in www/images folder.
I have....
body {
.... ... ...
... ... ...
background: .... url('background.php') 50% 0 fixed;
background-color: .....;
}
in style.css
what will be my php code in [B]background.php[/B].
I know some code which will change images randomly when reloading pages. But I need to change every 30 minutes...
background: #0facea url(back.php) no-repeat;
... ... ...
... ... ...
... ... ...
}
The code for back.php is :
<?php
header("Content-type: image/jpeg");
header("location:".'pictures/pictures_'.rand(1,6).'.jpg');
?>
Plz anyone reply...