Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/09/2007, 13:57
lana27
 
Fecha de Ingreso: septiembre-2007
Mensajes: 73
Antigüedad: 17 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>