17/12/2009, 09:52
|
| | Fecha de Ingreso: diciembre-2009
Mensajes: 201
Antigüedad: 14 años, 11 meses Puntos: 1 | |
Respuesta: Ayuda con codigo este es el script
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
var cross_marquee, cross_slide
marqueecontent='<nobr>'+marqueecontent.join(imageg ap)+'</nobr>'
var edom=document.all||document.getElementById
if (edom)
document.write('<span id="temp2" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
function fillup(){
if (edom){
cross_marquee=document.getElementById? document.getElementById("test4") : document.all.test4
cross_marquee2=document.getElementById? document.getElementById("test5") : document.all.test5
cross_marquee.innerHTML=cross_marquee2.innerHTML=m arqueecontent
actualheight=document.all? cross_marquee.offsetWidth : document.getElementById("temp2").offsetWidth
cross_marquee2.style.left=actualheight+5+"px"
}
else if (document.layers){
cross_slide=document.cross_slidemenu.document.cros s_slidemenu2
cross_slide2=document.cross_slidemenu.document.cro ss_slidemenu3
cross_slide.document.write(marqueecontent)
cross_slide.document.close()
actualheight=cross_slide.document.width
cross_slide2.left=actualheight+5
cross_slide2.document.write(marqueecontent)
cross_slide2.document.close()
}
lefttime=setInterval("sliderleft()",30)
}
window.onload=fillup
function sliderleft(){
if (edom){
if (parseInt(cross_marquee.style.left)>(actualheight* (-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.st yle.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(cross_marquee2.s tyle.left)+actualheight+5+"px"
if (parseInt(cross_marquee2.style.left)>(actualheight *(-1)+8))
cross_marquee2.style.left=parseInt(cross_marquee2. style.left)-copyspeed+"px"
else
cross_marquee2.style.left=parseInt(cross_marquee.s tyle.left)+actualheight+5+"px"
}
else if (document.layers){
if (cross_slide.left>(actualheight*(-1)+8))
cross_slide.left-=copyspeed
else
cross_slide.left=cross_slide2.left+actualheight-5
if (cross_slide2.left>(actualheight*(-1)+8))
cross_slide2.left-=copyspeed
else
cross_slide2.left=cross_slide.left+actualheight-5
}
}
if (edom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (edom){
write('<div style="position:relative;width:'+width+';height:'+ height+';overflow:hidden">')
write('<div style="position:absolute;width:'+width+';height:'+ height+';background-color:'+bgcolor+'" onMouseover="copyspeed=pauseit" onMouseout="copyspeed=marqueespeed')
write('<div id="test4" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test5" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+width+' height='+height+' name="cross_slidemenu" bgColor='+bgcolor+'>')
write('<layer name="cross_slidemenu2" left=0 top=0 onMouseover="copyspeed=pauseit" onMouseout="copyspeed=marqueespeed"></layer>')
write('<layer name="cross_slidemenu3" left=0 top=0 onMouseover="copyspeed=pauseit" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
} |