- Joined
- Apr 11, 2009
- Messages
- 920
- Reaction score
- 463
Code:
<html>
<head>
</head>
<title>Banners and Clips rotation</title>
<body bgcolor='black'>
<center>
<font color='red'><font size='14'>Banner and Clips Rotation</font></font>
<br/>
<br/>
<?php
$ads = rand (1, 3);
if($ads == "1"){
echo "<a href='http://kozmubg.net/' title='KoZ Mu'><img src='http://www.muonline.bg/template/default/images/i_header.jpg' border=0></a>";
}
if($ads == "2"){
echo "<a href='http://darksteam.net/' title='Darksteam ads'><img src='http://www.darksteam.net/images/satellite/misc/logo.gif' border=0></a>";
}
if($ads == "3"){
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="403"><param name="movie" value="http://i47.vbox7.com/player/ext.swf?vid=b85e6da7"><param name="quality" value="high"><embed src="http://i47.vbox7.com/player/ext.swf?vid=b85e6da7" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="403"></embed></object>';
}
?>
Много просто и лесно само сменяте числата при "RAND (1, XXXXX)" и добавяте още
Code:
if($ads == "1000"){
echo "<img src='pathway/banner1.jpg'>";
}
Лесно нали?