Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2004, 10:56
moncherote
Invitado
 
Mensajes: n/a
Puntos:
leer de archivo

Se puede hacer que este codigo del scripmaster me lea de un archivo de texto, u otro formato, en vez llevar el texto en la propia pagina????? yo lo intente pero no me sale!! Me ayudan???

El codigo :
------------------------------------------------
<html>
<body>
<!-- Copiar dentro del tag BODY -->
<script language="JavaScript1.2">

// Ancho (pixeles)
var marqueewidth=150
// Alto
var marqueeheight=150
// Velocidad (mayor, mas rapido)
var speed=2
// Contenido
var marqueecontents='<font face="Arial"><strong><big>Gracias por visitar <a href="http://www.webtutorial.com.ar">WebTutorial.</a> Si encontrás este programa útil, decile a tus amigos que lo descarguen de <a href="download/scriptmaster.zip">este lugar.</a> Que lo disfrutes!</big></strong></font>'

if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheig ht+'">'+marqueecontents+'</marquee>')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(marqueecontents)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thel ength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marque eheight
scrollit()
}
}

window.onload=regenerate2
</script>

<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>
</ilayer>
</body>
</html>
--------------------------------------------------------