Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/02/2003, 10:27
alfil_negro
 
Fecha de Ingreso: enero-2003
Ubicación: Aguascalientes, Aguascalientes
Mensajes: 191
Antigüedad: 21 años, 4 meses
Puntos: 1
ESte es el codigo que tengo.......

<script language="JavaScript1.2">

// ancho
var marqueewidth=130
// alto
var marqueeheight=70
// velocidad
var speed=1
// contenido
var marqueecontents='<font face="Arial"><small>Maestro, si cumpliste 10, 15, 20, 25, 30, 35, 40, 45, ó 50 años de servicio de apoyo haz tu solicitud en Rec. Hum. en Enero y Febrero.<a href="index.htm">ejemplo</small></a></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>

pero he visto otros .js y tienen ; al final de algunas lineas yo no lo requiero??