Hola Amigos de foros del web
Quisiera saber si alguien me podria ayudar con el siguiente codigo en el cual consiste en que rotan unas imagenes en forma horizontal , pero quiero que la imagen leftrightslide[0] empice al terminar la imagen leftrightslide[9] y no cuando termien de pasar todas ya que se queda un espacio en blanco.
saludos y gracias
--------
<script language="JavaScript1.2">
<!--
//Specify the slider's width (in pixels)
var sliderwidth=628
//Specify the slider's height (in pixels, pertains only to NS)
var sliderheight=83
//Specify the slider's scroll speed (larger is faster)
var slidespeed=5
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<img src="imagenes/1.jpg" ></a>'
leftrightslide[1]='<img src="imagenes/2.jpg"></a>'
leftrightslide[2]='<img src="imagenes/3.jpg"></a>'
leftrightslide[3]='<img src="imagenes/4.jpg"></a>'
leftrightslide[4]='<img src="imagenes/5.jpg"></a>'
leftrightslide[5]='<img src="imagenes/6.jpg"></a>'
leftrightslide[6]='<img src="imagenes/7.jpg" ></a>'
leftrightslide[7]='<img src="imagenes/8.jpg" ></a>'
leftrightslide[8]='<img src="imagenes/9.jpg" ></a>'
leftrightslide[9]='<img src="imagenes/10.jpg" ></a>'
///////do NOT edit pass this line////////////////////////////////////
var copyspeed=slidespeed
//copy contents of leftrightslide into one variable
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+" "
if (document.all){
//dynamically write out the marquee tag
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
//stop marquee when mouse is over it
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
//re-enable marquee when mouse is out
ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed")
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()
}
if (document.all)
ieslider.scrollAmount=slidespeed
}
//NS specific function for initializing slider upon page load
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document .write('<nobr>'+finalslide+'</nobr>')
document. ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider0 2.document.width
scrollslide()
}
//NS specific function for sliding slideshow
function scrollslide(){
if (document.ns_slider01.document.ns_slider02.left>=t helength*(-1)){
document.ns_slider01.document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)
}
else{
document.ns_slider01.document.ns_slider02.left=sli derwidth
scrollslide()
}
}
window.onload=regenerate2
//-->
</script>