Hey Dear_maria i have this for you http://css-tricks.com/snippets/php/randomize-background-image/
Im on my tablet so its not easy putting the information on but if u still strugle ill write a walk thru when im on the pc
Merged on Aug 10 2013 at 18:35:58:
What i have done is removed your background image code and replaced it with this,
[syntaxhighlighter brush=css,first-line=1,highlight=0,collapse=false,html-script=false]background: url(images/<?php echo $selectedBg; ?>
no-repeat;[/syntaxhighlighter]
new css style code:[syntaxhighlighter brush=css,first-line=1,highlight=0,collapse=false,html-script=false]body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
padding:0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
background-color:#FFFFFF;
background: url(images/<?php echo $selectedBg; ?>
no-repeat;
background-repeat:no-repeat;
background-attachment: fixed;
background-position:center;
}[/syntaxhighlighter]
Now edit /includes/header_includes.php
and add this to the bottom befor the
?> the bottom should look like this...
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $bg = array('
bg-01.jpg', '
bg-02.jpg', '
bg-03.jpg' ); // array of filenames
$i = rand(0, count($bg)-1); // generate random number size of the array
$selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen
?>[/syntaxhighlighter]
the rest is self explanitory, Replace "
bg-01.jpg" and so on with the images you would like
and dont forget to check your images dir in the CSS code Default: images/
any trouble let me know, other thing what PHP and CSS version are you useing?