Muchas gracias.
function cambiar(img){
if (document.images['grande'].src!=document.images['img'].src) {
document.images['grande'].src=document.images['img'].src;
}
}
Imagen a cambiar:
Código:
Imagenes por las que quiero ir cambiando la grande al clickear sobre ellas.<img src='".$imgs_datos['imagen1']."' name='grande' width='400' height='300' id='grande'>
Código:
<a href='#' OnMouseDown='cambiar(uno);'><img src='".$imgs_datos['imagen1']."' name='uno' width='65' height='49' id='uno'></a> <a href='#' OnMouseDown='cambiar(dos);'><img src='".$imgs_datos['imagen2']."' name='dos' width='65' height='49' id='dos'></a> <a href='#' OnMouseDown='cambiar(tres);'><img src='".$imgs_datos['imagen3']."' name='tres' width='65' height='49' id='tres'></a>