Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/01/2003, 13:14
Avatar de medinauta
medinauta
 
Fecha de Ingreso: diciembre-2002
Ubicación: Guayaquil
Mensajes: 159
Antigüedad: 21 años, 4 meses
Puntos: 0
Ayuda con este script que me ha dado lata....

Quisiera que me ayuden con esto :

Tengo este script: (después de tanto intentar, encontré algo parecido a lo que quiero)

<html>

<head>
<title>Scroller</title>
<Script>
// Inicia scroller
var pic = new Array()

function banner(name, width, link, alt){
this.name = name
this.width = width
this.link = link
this.alt = alt }

pic[0] = new banner('img/pics/dom.jpg',150,'http://www.qksrv.net/click-1242222-9753147','David&nbsp;O&nbsp;McKay')
pic[1] = new banner('img/pics/etb.jpg',150,'http://www.qksrv.net/click-1242222-9753156','Ezra')
pic[2] = new banner('img/pics/gas.jpg',150,'http://www.qksrv.net/click-1242222-9753158','George Albert Smith')
pic[3] = new banner('img/pics/hjg.jpg',150,'http://www.qksrv.net/click-1242222-9777652','xx')
pic[4] = new banner('img/pics/swk.jpg',150,'http://www.qksrv.net/click-1242222-9777656','xx')
pic[5] = new banner('img/pics/hwh.jpg',150,'http://www.qksrv.net/click-1242222-9753163','xx')
pic[6] = new banner('img/pics/jfs.jpg',150,'http://www.qksrv.net/click-1242222-9729935','xx')
pic[7] = new banner('img/pics/jfs2.jpg',150,'http://www.qksrv.net/click-1242222-9729770','xx')
pic[8] = new banner('img/pics/hbl.jpg',150,'http://www.qksrv.net/click-1242222-9753151','xx')
pic[9] = new banner('img/pics/ls.jpg',150,'http://www.qksrv.net/click-1242222-9707694','xx')
pic[10] = new banner('img/pics/jt.jpg',150,'http://www.qksrv.net/click-1242222-9729936','xx')


var speed = 20

var kk = pic.length
var ii
var hhh
var nnn
var myInterval
var myPause


var imgArray = new Array(kk)
var myLeft = new Array(kk)

for (ii=0;ii<kk;ii++){
imgArray[ii] = new Image()
imgArray[ii].src = pic[ii].name
imgArray[ii].width = pic[ii].width


hhh=0
for (nnn=0;nnn<ii;nnn++){
hhh=hhh+pic[nnn].width
}
myLeft[ii] = hhh
}

function ready(){
for (ii=0;ii<kk;ii++){
if (document.images[ii].complete == false){
return false
break
}
}
return true
}


function startScrolling(){
if (ready() == true){
window.clearInterval(myPause)
myInterval = setInterval("autoScroll()",speed)
}
}

function autoScroll(){
for (ii=0;ii<kk;ii++){
myLeft[ii] = myLeft[ii] - 1

if (myLeft[ii] == -(pic[ii].width)){
hhh = 0
for (nnn=0;nnn<kk;nnn++){
if (nnn!=ii){
hhh = hhh + pic[nnn].width
}
}
myLeft[ii] = hhh
}



document.images[ii].style.left = myLeft[ii]
}
}

//fin scroller
</Script>
<SCRIPT language=JavaScript1.2>
//efecto highlight
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)", 25)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=30
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
//fin highlight
</SCRIPT>

</head>
<body bgcolor='#eeffff'>
<Script language="">
for (ii=0;ii<kk;ii++){
document.write('<a href = ' + pic[ii].link + ' target="_blank" ><img space=0 hspace=0 vspace=0 border=0 width=150 height=76 alt=' + pic[ii].alt + ' onmouseout=low(this) onmouseover=high(this) style=position:absolute;top:0;left:' + myLeft[ii] + ';FILTER:alpha(opacity=30); src=' + pic[ii].name + '></a>')
}
myPause = setInterval("startScrolling()",5000)


</Script>
</body>

</html>

A este script quisiera que cuando pase el mouse sobre una imagen se detenga, y cuando salga (onMouseOut) continúe.

Le agradecería mucho al (a) que me ayude con esto.