Wikipedia para siempre
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1  <script type="text/javascript">2 3  var sliderwidth="618px"4  var sliderheight="317px"5  var slidespeed=26  slidebgcolor="#FFFFFF"7  var leftrightslide=new Array()8 var finalslide=''9 leftrightslide[0]='<a href="#"><img src="IMAGENES/elvive.jpg" alt="foto" />deberías</a>'10 leftrightslide[1]='<a href="#"><img src="IMAGENES/regalos-navidad-belleza.jpg" alt="set milagoroso" />aprender</a>'11 leftrightslide[2]='<a href="#"><img src="IMAGENES/LOREAL001.jpg" alt="loreal" />a copiar</a>'12 leftrightslide[3]='<a href="#"><img src="IMAGENES/loreal1.jpg" alt="elvive" />y a buscar</a>'13 leftrightslide[4]='<a href="#"><img src="IMAGENES/relax.jpg" alt="relax" />código</a>'14 leftrightslide[5]='<a href="#"><img src="IMAGENES/Rutina Lancome HydraZen.JPG" alt="hydra zen" />decente</a>'15 leftrightslide[6]='<a href="#"><img src="IMAGENES/zenlounge.jpg" alt="piedras" /></a>'16  var imagegap=""17  var slideshowgap=2518  var copyspeed=slidespeed19 leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'20 var iedom=document.all||document.getElementById21 if (iedom)22 document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')23 var actualwidth=''24 var cross_slide, ns_slide25  function fillup(){26 if (iedom){27 cross_slide=document.getElementById? document.getElementById("test2") :28 document.all.test229 cross_slide2=document.getElementById? document.getElementById("test3") :30 document.all.test331 cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide32 actualwidth=document.all? cross_slide.offsetWidth :33 document.getElementById("temp").offsetWidth34 cross_slide2.style.left=actualwidth+slideshowgap+"px"35 }36 else if (document.layers){37 ns_slide=document.ns_slidemenu.document.ns_slidemenu238 ns_slide2=document.ns_slidemenu.document.ns_slidemenu339 ns_slide.document.write(leftrightslide)40 ns_slide.document.close()41 actualwidth=ns_slide.document.width42 ns_slide2.left=actualwidth+slideshowgap43 ns_slide2.document.write(leftrightslide)44 ns_slide2.document.close()45 }46 lefttime=setInterval("slideleft()",30)47 }48 window.onload=fillup49  function slideleft(){50 if (iedom){51 if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))52 cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"53 else54 cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"55  if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))56 cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"57 else58 cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"59  }60 else if (document.layers){61 if (ns_slide.left>(actualwidth*(-1)+8))62 ns_slide.left-=copyspeed63 else64 ns_slide.left=ns_slide2.left+actualwidth+slideshowgap65  if (ns_slide2.left>(actualwidth*(-1)+8))66 ns_slide2.left-=copyspeed67 else68 ns_slide2.left=ns_slide.left+actualwidth+slideshowgap69 }70 }71  if (iedom||document.layers){72 with (document){73 document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')74 if (iedom){75 write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')76 write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')77 write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')78 write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')79 write('</div></div>')80 }81 else if (document.layers){82 write('<ilayer width='+sliderwidth+' height='+sliderheight+'name="ns_slidemenu" bgColor='+slidebgcolor+'>')83 write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')84 write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')85 write('</ilayer>')86 }87 document.write('</td></table>')88 }89 }90 91 </script>
Enlace
El enlace para compartir es:

Powered by TreeWeb
© TreeWeb 2010. Todos los derechos reservados