JavaScript - foto

 
Vista:

foto

Publicado por LOLA (2 intervenciones) el 24/07/2001 15:19:24
Como puedo hacer q en una misma pag. al pasar el ratón por una foto aparezca ptra foto diferente al lado que anteriormente no estaba
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Correccion

Publicado por Jujo (37 intervenciones) el 25/07/2001 00:06:16
Lo siento, el codigo anterior estaba mal, el siguiente es el bueno:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#ffffff" onLoad="MM_preloadImages('img2')">
<table border="1" width="100%">
<tr>
<td id=alla name="alla" width="50%" LANGUAGE=javascript onmouseover="return alla_onmouseover()"><IMG id=imagen style="VISIBILITY: visible; WIDTH: 263px; HEIGHT: 102px" height =448 src="file://C:\datasite\images\bullet.gif" width=572 border=0 name=imagen ></td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td id=aki name="aki" width="50%" LANGUAGE=javascript onmouseover="return aki_onmouseover()" onmouseout="return aki_onmouseout()">Jujo</td>
</tr>
</table>
</body>
</html>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function aki_onmouseover() {
imagen.src="images/face.jpg"
}

function aki_onmouseout() {
imagen.src="images/bullet.gif"
}

//-->
</SCRIPT>

Suerte
JJ
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Mediante capas...

Publicado por Puli (218 intervenciones) el 25/07/2001 16:42:40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
</script>
<style type="text/css">
<!--
#Ly {position: absolute; left:130px; top:15px; width: 125px; height: 300;visibility:hidden}
-->
</style>
</head>
<body>
<a href="#" onmouseover="MM_showHideLayers('Ly','','show')" onmouseout="MM_showHideLayers('Ly','','hide')">pasa por aqui...</a>
<div id="Ly">Foto 2</div>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar