Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/12/2006, 04:27
Avatar de BLAH !!
BLAH !!
 
Fecha de Ingreso: septiembre-2003
Ubicación: Región Metropolitana, Santiago, Chile
Mensajes: 706
Antigüedad: 21 años, 6 meses
Puntos: 16
De acuerdo Re: Como cambiar imagenes al dar clik sobre ella. !!!

Tambiçe puede ser algo asi

Código HTML:
<HTML>
<HEAD>
<TITLE>CAMBIAR IMAGEN AL CLICKEARLA</TITLE>


<SCRIPT LANGUAGE="Javascript">
function Permut (flag,img) {
   if (document.images) {
        if (document.images[img].permloaded) {
            if (flag==1) document.images[img].src = document.images[img].perm.src
            else document.images[img].src = document.images[img].perm.oldsrc
        }
   }
}
function preloadPermut (img,adresse) {
   if (document.images) {
        img.onload = null;
        img.perm = new Image ();
        img.perm.oldsrc = img.src;
        img.perm.src = adresse;
        img.permloaded = true;
   }
}
</SCRIPT>

</HEAD>

<BODY>
<A HREF="#" onclick="Permut(1,'IMG1');">
<IMG SRC="mi_imagen1.jpg" border=0 NAME="IMG1" 

onLoad="preloadPermut(this,'mi_imagen2.jpg');" ></A>


</BODY>
</HTML> 
__________________
Adios ...!!!!