fran Admisitrador
Mensajes : 66 Fecha de inscripción : 18/05/2010 Edad : 28 Localización : Tocina
| Tema: [Codigo]Texto marquesina dentro de un formulario Miér Mayo 19, 2010 6:14 pm | |
| Texto marquesina dentro de un formulario Ejemplo: http://www.cyberiapc.com/aascripter/samples/TextEffects/sub7.htmFunciona en: Mozilla Firefox y Internet Explore este dentro de las etiquetas <HEAD> Y </HEAD>Código: <script language="JavaScript"> <!-- Hide the script from non-JavaScript browsers -- // This script was found at the JavaScript Place. http://www.javaplace.co.uk var timerID = null; var timerRunning = false; var id,pause=0,position=0;
function ticker() { var i,k,msg=" Your important and interesting messages go here .......... "; k=(75/msg.length)+1; for(i=0;i<=k;i++) msg+=" "+msg; document.form2.ticker.value=msg.substring(position,position+100); if(position++==38) position=0; id=setTimeout("ticker()",1000/10); }
function action() { if(!pause) { clearTimeout(id); pause=1; } else { ticker(); pause=0; } } // --End hiding script from non-JavaScript browsers --> </script> y Este dentro de las etiquetas <BODY> Y </BODY>Código: <BODY onLoad="ticker ()">
<CENTER><H3>Ticker Tape scrolling message demo</H3></CENTER>
<P> <FORM NAME="form2"> <INPUT TYPE="text" name="ticker" size="82"> </FORM> <P> Back to the <A HREF="index.html">index</A> page | |
|