Mostrando Codigo - Javascript
< SCRIPT language= "JavaScript" >
var mensaje= "Visita Tutores.org"
var color_base= "#cc9900"
var color_secundario= "#000000"
var flashspeed= 50
var n= 0
if ( document.all ) {
document.write ( '' )
for ( m= 0 ; m< mensaje.length ; m++ )
document.write ( '<span id="mi_mensaje">' + mensaje.charAt ( m) + '</span>' )
document.write ( '' )
var tempref= document.all .mi_mensaje
}
else
document.write ( mensaje)
function neon( ) {
if ( n== 0 ) {
for ( m= 0 ; m< mensaje.length ; m++ )
tempref[ m] .style .color = color_base
}
tempref[ n] .style .color = color_secundario
if ( n< tempref.length - 1 )
n++
else {
n= 0
clearInterval( flashing)
setTimeout( "inicia_mensaje()" , 1500 )
return
}
}
function inicia_mensaje( ) {
if ( document.all )
flashing= setInterval( "neon()" , flashspeed)
}
inicia_mensaje( )
</ SCRIPT>
ENLACE AL CODIGO
Si quieres enlazar desde tu pagina a este codigo
COMENTARIOS
Aun no existe ningun comentario para este Codigo.