Foros del Web » Programando para Internet » Javascript »

Agregar un link diferente a cada foto del javascript

Estas en el tema de Agregar un link diferente a cada foto del javascript en el foro de Javascript en Foros del Web. Hola estoy haciendo una galeria de imágenes con un javascript que me encontre, lo que quisiera es agregar un link diferente a cada foto dentro ...
  #1 (permalink)  
Antiguo 26/09/2007, 13:57
 
Fecha de Ingreso: septiembre-2007
Mensajes: 73
Antigüedad: 16 años, 7 meses
Puntos: 0
Agregar un link diferente a cada foto del javascript

Hola estoy haciendo una galeria de imágenes con un javascript que me encontre, lo que quisiera es agregar un link diferente a cada foto dentro del mismo javascript . Les agradeceria mucho su ayuda!!!

Código HTML:
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript type=text/javascript>
<!--
//slides
function photoOn(imgName) {
		seeIt = ("" + imgName);
		document.bigphoto.src = seeIt;
}

myPix = new Array(
"img/gallery_01g.gif",
"img/gallery_02g.gif",
"img/gallery_03g.gif",
"img/gallery_04g.gif"

)
thisPic = 0
imgCt = myPix.length - 1

function chgSlide(direction) {
	if (document.images) {
		thisPic = thisPic + direction
		if (thisPic > imgCt) {
			thisPic = 0
		}
		if (thisPic < 0) {
			thisPic = imgCt
		}
		document.bigphoto.src=myPix[thisPic]
	}
}

//-->
</SCRIPT>

</head>

<body>
<DIV align=center>
  <p><IMG class=thumb id=bigphoto height=300 alt="" 
      src="img/gallery_01g.gif" 
      width=400 border=1 name=bigphoto> </p>
  <p><A class=thumblink 
      href="javascript:photoOn('img/gallery_01g.gif','parametro.html');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_01.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_02g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_02.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_03g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_03.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_04g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_04.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_03g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_03.gif" 
      width=75 vspace=5 border=1></A><A class=thumblink 
      href="javascript:photoOn('img/gallery_01g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_01.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_02g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_02.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_03g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_03.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_04g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_04.gif" 
      width=75 vspace=5 border=1></A> <A class=thumblink 
      href="javascript:photoOn('img/gallery_03g.gif');"><IMG class=thumb height=75 
      alt="" hspace=5 
      src="img/gallery_03.gif" 
      width=75 vspace=5 border=1></A></p>
</DIV>
<P align=center>&lt;&lt; <A 
      href="javascript:chgSlide(-1)">previous</A>&nbsp;&nbsp;<A 
      href="javascript:chgSlide(1)">next</A> &gt;&gt; </P>
</body> 
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:03.