Каждой странице разный фон
- Предыдущая
- 1
- 2
- Показаны 16-24 из 24
alegcool, может имеешь ввиду фон сайта
Да именно.
и там вставляй
<?php "1" => "/img1.jpg", "2" => "/img2.jpg", "3" => "/img3.jpg", "4" => "/img4.jpg", "5" => "/img5.jpg" ); foreach ($cvet as $nomer => $img) { if ($nomer == $rand){ $src=$img}; } ?> <body background="<? echo $src;?>" >
<body style="background:url(<? echo $src;?>);" >
В css
html,body {background:url('/templates/lite/images/fon-1.png') #ffffff no-repeat top center;}
<?php "1" => "/templates/lite/images/fon-1.png", "2" => "/templates/lite/images/fon-2.png", "3" => "/templates/lite/images/fon-3.png", "4" => "/templates/lite/images/fon-4.png", "5" => "/templates/lite/images/fon-5.png" ); foreach ($cvet as $nomer => $img) { if ($nomer == $rand){ $src=$img;}; } ?> <body bgcolor ="<? echo $src;?>" >
<?php "1" => "/templates/lite/images/fon-1.png", "2" => "/templates/lite/images/fon-2.png", "3" => "/templates/lite/images/fon-3.png", "4" => "/templates/lite/images/fon-4.png", "5" => "/templates/lite/images/fon-5.png" ); foreach ($cvet as $nomer => $img) { if ($nomer == $rand){ $src=$img;}; } ?> <body style="background:url('<? echo $src;?>') #ffffff no-repeat top center;" >
- Предыдущая
- 1
- 2
- Показаны 16-24 из 24