Rotador de texto con php
codigosphp 06-02-2008 GTM 1 @ 05:19Hay que hacer los ficheros.txt con la palabra que iremos a rotar o el contenido.
include ("texto1.txt");
include ("texto2.txt");
include ("texto3.txt");
include ("texto4.txt");
$textscript1 = $texto1
$textscript2 = $texto2
$textscript3 = $texto3
$textscript4 = $texto4
<script language="javascript" type="text/javascript">
var textos = new Array()
textos[0] = ''+ echo $textscript1; ?>+''
textos[1] = ''+ echo $textscript2; ?>+''
textos[2] = ''+ echo $textscript3; ?>+''
textos[3] = ''+ echo $textscript4; ?>+''
var indice = 0
?>

Meneame
del.icio.us