HTML, css, script, MySQL :: script
Ротатор 2
<?php $selector=rand(1,100); if($selector>75){ ?>
<img width="201" height="118" alt="текст" src="/images/kartinka/png_1.jpg">
<?php } else if($selector>50){ ?>
<img width="201" height="118" alt="текст" src="/images/kartinka/png_2.jpg">
<?php } else if($selector>25){ ?>
<img width="201" height="118" alt="текст" src="/images/kartinka/png_3.jpg">
<?php } else { ?>
<img width="201" height="118" alt="текст" src="/images/kartinka/png_4.jpg">
<?php } ?>
|
|
|