
12/10/2003, 07:19
|
 | | | Fecha de Ingreso: noviembre-2002 Ubicación: Madrid
Mensajes: 854
Antigüedad: 22 años, 3 meses Puntos: 0 | |
Por cierto, quiero cambiar tambien el href cada vez que cambie la imagen, he hecho esto y me da error:
linkref[<%=intI%>]=new Link;
linkref[<%=intI%>.href="<%=MRA("URL")%>"
function presImagen()
{
if (document.all){
document.getElementById('autoAfiliados').filters.b lendTrans.apply()
document.getElementById('autoAfiliados').src=image nes[cont].src
document.getElementById('autoAfiliados').alt=image nes[cont].alt
document.getElementById('autoAfiliados').filters.b lendTrans.play()
document.getElementById('autoHref').href=linkref[cont].href
}
else
{
document.images.autoAfiliados.src = imagenes[cont].src
document.images.autoAfiliados.alt = imagenes[cont].alt
document.links.linkref.href = linkref[cont].href
}
if (cont < imagenes.length-1)
{cont ++}
else
{cont=0}
tiempo=window.setTimeout('presImagen()',5000)
//cada 5000 milisegundos (5 seg.) cambia la imagen.
//cambia la cantidad por el tiempo que quieras que transcurra entre imagen e imagen
}
Y me da error... ¿como hago para cambiar tambien el href de un elemento?
Gracias |