Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/01/2013, 10:41
leofenixcomp
 
Fecha de Ingreso: diciembre-2012
Mensajes: 20
Antigüedad: 11 años, 4 meses
Puntos: 0
Respuesta: Rotador de texto sin RANDOM

Disculpa trato de acoplar lo que me dijiste pero no me da, lo he intentado de diferentes maneras, ya estoy echo lio.

Código PHP:
<script>
function frases_alea(){


frases = new Array();

//frases[0] = "<center><h3>FENIX SERVICES</h3><p>&nbsp;</p><p>Registrate en: </p><p><br /><strong>www.latinoguiafranklin.com</strong></p><p>Para poner alertas en la aplicación completamente Gratis!</p><p><br/>AYUDEMONOS - INFORMEMONOS - PARTICIPEMOS</p></center>";
<?php 
for ($contador 0;
$row mysql_fetch_array($result);
$contador++): 
?>
<?php
 
while($row mysql_fetch_array($result)) { 
      
printf("frases[$contador;] = \"<p>Fecha:&nbsp;&nbsp;%s</p><p>Ciudad:&nbsp;%s</p><p>Tipo de Alarma: &nbsp;%s</p><p>%s</p>\";\n",$row["fecha"], $row["ciudad"], $row["tpal"], $row["texto"]); 
   }                 
   
mysql_free_result($result); 
?>
<?php
 
endfor;  ?>
return frases[aleatorio];

}
onload=function(){
    document.getElementById('algo').innerHTML=frases_alea();
    setInterval(function(){document.getElementById('algo').innerHTML=frases_alea();},3000)
}
</script>



</head>

<body topmargin="0" leftmargin="0" rightmargin="0">
<table width="100%" border="0" cellpadding="0" cellspacing="3">
 
  <tr>
    <td  bgcolor="#f6e206"><img src="img/imgalertas.png" width="300" height="35" /></td>
  </tr>
  <tr>
    <td align="justify"><div id="algo" style="width: 100%; height: 100%;"></div></td>
  </tr>
   <tr>
    <td>&nbsp;</td>
  </tr>
</table>

</body>
</html>