te dejo un buen codigo que implemente, es un codigo rotabanners pero es funcional para cualquier cosa:
Código:
<?
$numeroentradas=4; // donde x es el conteido que quieres cambiar.
$rn=rand(1,$numeroentradas);
if ($rn==1) {
?> -Codigo HTML 1 -
<? } if ($rn==2) {
?> -Codigo HTML 2 -
<? } if ($rn==3) {
?> -Codigo HTML 3 -
<? } if ($rn==4) {
?> -Codigo HTML 4 -
<? } ?>
Salu2
<center><iframe marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="http://www.ladodos.com/firma/firma.php" width=500 height=100></iframe></center>