Bueno pues tengo una duda que haber si alguno podeis resolvermela, bien tengo un código que pondré más abajo, que es un script que crea una marquesina de texto horizontal y que se va moviendo poco a poco, bien mi duda es si puedo hacer que el color del fondo de la marquesina sea transparente para que coja el color de fondo de la web, y si puedo ponerle color al texto que se mueve. También me gustaría saber si hay alguna forma de que el texto pase de una forma más ligera, porque parece que va un poco a trompicones. Aquí os dejo para ver como está ahora mismo el scripts:
www.l2-ageofdarkness.es
Scripts:
Código:
<script language="javascript">
<!--
var bannerID=0
function text(msg,ctrlwidth) {
msg = " --- "+msg
newmsg = msg
while (newmsg.length < ctrlwidth) {
newmsg += msg
}
document.write ('<FORM NAME="Scrolltext">');
document.write ('<CENTER><INPUT NAME="text" VALUE= "'+newmsg+'" SIZE= '+ctrlwidth+' ></CENTER>');
document.write ('</FORM>');
var bannerID = null
rollmsg()
}
function rollmsg() {
NowMsg = document.Scrolltext.text.value
NowMsg = NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
document.Scrolltext.text.value = NowMsg
bannerID = setTimeout("rollmsg()",150)//change the number 100 to represent the speed of the scroll. The larger the number the slower it moves
}
// -->
</script>
</head>
<body>
<script>
<!--
msg = " Acordaros de votar diariamente en HOPZONE para que la comunidad crezca! "
ctrlwidth = "110" //change this number to the length you would like the message box to be
text(msg,ctrlwidth);
// -->
</script>