Tengo esto que hace mucho bajé de la web para generar marquesinas:
Código HTML:
<HTML><HEAD><TITLE></TITLE> <STYLE> BODY { scrollbar-face-color:#0F1E29; scrollbar-highlight-color:green; scrollbar-3dlight-color:blue; scrollbar-darkshadow-color:black; scrollbar-shadow-color:white; scrollbar-arrow-color:white; scrollbar-track-color: #0C3464; color : yellow; } </STYLE> <script language="JavaScript"> function ctrlA01(corp) { with(corp){ focus(); select() } if(document.all){ txt=corp.createTextRange() txt.execCommand("Copy") window.status='Texto copiado al portapapeles' } else window.status='Presiona Ctrl+c para copiar' setTimeout("window.status=''",3000) } </script> <SCRIPT> function mostrar(){ marquesina = "<strong><marquee behavior='" + document.formul.select.value + "'" + " scrolldelay='" + document.formul.velocidad.value + "'" + " width=" + document.formul.ancho.value + "%>" + "<font color='" + document.formul.select2.value + "'" + " size='" + document.formul.tamaño.value + "'>" + "<" + document.formul.select3.value + ">" + document.formul.texto.value + "</" + document.formul.select3.value + ">" + "</font></marquee></strong>" document.formul.marquesina.value = marquesina } function mostrar1(){ marquesina="<SCRIPT>" +"var texto='" + document.formul.texto.value + "';" +" var longitud=texto.length;" +" function scroll() {" +"texto=texto.substring(1,longitud-1)+texto.charAt(0);" +"window.status=texto;" + "setTimeout('scroll()'," + document.formul.velocidad.value+");" +"}" +"scroll();" +"</"+"SCRIPT>" document.formul.marquesina.value = marquesina } function mostrar2(){ marquesina="<SCRIPT>" +"var texto='" + document.formul.texto.value + "';" +" var longitud=texto.length;" +" function scroll() {" +"texto=texto.substring(1,longitud-1)+texto.charAt(0);" +"document.title=texto;" + "setTimeout('scroll()'," + document.formul.velocidad.value+");" +"}" +"scroll();" +"</"+"SCRIPT>" document.formul.marquesina.value = marquesina } </SCRIPT> </HEAD> <BODY bgcolor="black"><font color=#00FA00 size=3> <center><table> <tr><td>__ <td>__ <td width=10>__<td><td> ___<td>___<td>*___<td> *__ <td>**__<td>___<td></td></tr> <tr><td>| <td> | <td width=10> |***<td>| <td> |******<td>|*****|<td>|******|<td>|**** \ <td>/******\<td> |*****|*<td></td></tr> <tr><td>|---|<td> ---- <td width=10>| <td>|**|<td >|*---<td> |---- <td>|-----|<td>|******|<td>|**()***|<td> |---- <td></td></tr> <tr><td>|__|<td>|__ <td width=10> | <td>|_| <td>|___<td>|*****\<td>|******|<td>|__*/<td>\___/<td>|*****\<td></td></tr> </table></center> <FORM name=formul> Direccion: (SMD) <select name=select style="background:black;color:#D7E629;"> <option value=alternate>alternado <option value=right>derecha </select> Velocidad: <input name=velocidad size=2 style="background: #0F1E29;border:1px solid #736EDC;color:#D7E629;font-weight:bold;"> Anchura: (SMD) <input name=ancho size=2 style="background: #0F1E29;border:1px solid #736EDC;color:#D7E629;font-weight:bold;"> Formato: (SMD) <select name=select3 style="background:black;color:#D7E629;"> <option value=b>negrita <option value=i>cusiva <option value=u>subrayado </select><br><br> Texto: <input name=texto size=28 style="background: #0F1E29;border:1px solid #736EDC;color:#D7E629;font-weight:bold;"> Tamaño Fuente: (SMD) <input name=tamaño size=2 style="background: #0F1E29;border:1px solid #736EDC;color:#D7E629;font-weight:bold;"> Color Fuente: (SMD) <select name=select2 style="background:black;color:#D7E629;"> <option value=black selected>Negro <option value=0000FF>Azul M <option value=A0A0A0>Gris <option value=E9E900>Amarillo <option value=A0A0FF>Morado <option value=C70000>Marron <option value=FFFFA0>Cafe <option value=F0F0FA>Plata <option value=FF00FF>Rosa F <option value=blue>Azul </select> <br><br> Aqui esta el codigo <!--Aqui el portapapeles> <input type="button" value="seleccionar y copiar" onclick="ctrlA01(document.formul.marquesina)" style="background: #0F0A14;border:1px solid #736EDC;color:#0FD2DC;font-weight:bold;"> <BR><TEXTAREA name=marquesina cols=76 rows=4 style="background: #0C3464;border:1px solid #736EDC;color:#0F7897;font-weight:bold;"></TEXTAREA> <BR><BR> <INPUT onclick=mostrar() type=button value="Generar en Documento" style="background: #0F0A14;border:1px solid #736EDC;color:#0FD2DC;font-weight:bold; width=230""> <INPUT onclick=mostrar1() type=button value="Generar en Barra de Estado" style="background: #0F0A14;border:1px solid #736EDC;color:#0FD2DC;font-weight:bold; width=230"> <INPUT onclick=mostrar2() type=button value="Generar en Barra de Titulo" style="background: #0F0A14;border:1px solid #736EDC;color:#0FD2DC;font-weight:bold; width=230"> </FORM> <font color=yellow size="3">SMD = Solo marquesina en documento.</font> </BODY>
Por favor necesito ayuda porque no sé nada de Javascript
Muchas gracias.