Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/08/2004, 08:26
Cortamangas
 
Fecha de Ingreso: agosto-2004
Mensajes: 4
Antigüedad: 20 años, 5 meses
Puntos: 0
Hola, aca va el codigo, gracias por la ayuda.


<script LANGUAGE="JavaScript">
var myPix = new Array("../images/projects/7340_01.jpg","../images/projects/7340_02.jpg")
var thisPic = 0
function processPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function processNext() {
if (document.images && thisPic < 1) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}
</script>


y en el body:

<a href="javascript:processPrevious()">next</a><br>
<a href="javascript:processPrevious()">prev</a>