Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/02/2007, 15:09
Avatar de causita
causita
 
Fecha de Ingreso: mayo-2002
Ubicación: Lima-Perú
Mensajes: 2.043
Antigüedad: 22 años
Puntos: 8
Re: modificar galeria de fotos

no estoy seguro si lo hice bien pero el código lo completé asi
Cita:
<html>
<head>
</head>
<body>
<script language="JavaScript">
<!--
var viewPix = new Array("1.jpg","2.jpg")
var tamano = new Array('200x100','100x200');
var thisImage = 0

function doPast() {
if (document.images && thisImage > 0) {
thisImage--
document.myShow.src=viewPix[thisImage]
document.myShow.style.width = tamano[thisImage].split('x')[0] + 'px';
document.myShow.style.height = tamano[thisImage].split('x')[1] + 'px';
}
}
function doAfter() {
if (document.images && thisImage < 2) {
thisImage++
document.myShow.src=viewPix[thisImage]
}
}
// -->
</script>
<div align="center"><img name="myShow" src="2.jpg" width="100" height="200"><br><a

href="javascript:doPast()">Anterior</a> <a

href="javascript:doAfter()">Siguiente</a></div>
</body>
</html>
pero no me funciona bien

Gracias x la ayuda
__________________
|| no hay pregunta tonta....lo q hay son tontos q no preguntan || d-.-b

El Causita