Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/01/2012, 14:02
yagoo_15
 
Fecha de Ingreso: enero-2012
Mensajes: 2
Antigüedad: 12 años, 3 meses
Puntos: 0
Exclamación error 'is not defined' en firefox

Tengo un problema con mi sitio, en IE y Safari si se muestran mis imagenes en miniatura, pero en Firefox no. En la consola web de firefox muestra el error "img0 is not defined". No tengo mucho conocimiento de Javascript pero necesito solucionarlo. A continuacion les dejo el codigo y les agradezco la ayuda.

<script language='javascript' type='text/javascript'>
//photos

function ReloadImages() {
LoadPhotos();
LoadRenders();
}

function LoadPhotos() {
if ((curphoto) < cphotos) {
img0.src = 'images/blankwhite.jpg';
} else { img0.src = 'imgwr.php?square=1&id=' + photos[curphoto] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 1) > cphotos) {
img1.src = 'images/blankwhite.jpg';
} else { img1.src = 'imgwr.php?square=1&id=' + photos[curphoto+1] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 2) > cphotos) {
img2.src = 'images/blankwhite.jpg';
} else { img2.src = 'imgwr.php?square=1&id=' + photos[curphoto+2] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 3) > cphotos) {
img3.src = 'images/blankwhite.jpg';
} else { img3.src = 'imgwr.php?square=1&id=' + photos[curphoto+3] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 4) > cphotos) {
img4.src = 'images/blankwhite.jpg';
} else { img4.src = 'imgwr.php?square=1&id=' + photos[curphoto+4] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 5) > cphotos) {
img5.src = 'images/blankwhite.jpg';
} else { img5.src = 'imgwr.php?square=1&id=' + photos[curphoto+5] + '&dim=100x100&flood=FFFFFF' }

if ((curphoto + 6) > cphotos) {
img6.src = 'images/blankwhite.jpg';
} else { img6.src = 'imgwr.php?square=1&id=' + photos[curphoto+6] + '&dim=100x100&flood=FFFFFF' }
}