Parašė Peacemaker· 2008 Kov. 18 13:03:23
#7
Štai dar vienas, jeigu kam reikėtų.Adresus visus galima pakeist.
<?php
$Img1 = "http://www.f1fanas.lt/images/av2.jpg";
$Url1 = "http://www.f1fanas.lt";
$Img2 = "http://www.f1fanas.lt/images/av3.jpg";
$Url2 = "http://www.about.com";
$Img3 = "http://www.f1fanas.lt/images/raik.jpg";
$Url3 = "http://php.about.com";
$num = rand (1,3);
$Image = ${'Img'.$num};
$URL = ${'Url'.$num};
Print "<a href=".$URL."><img src=".$Image." border=0></a>";
?>