Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2010, 15:41
susana_18
 
Fecha de Ingreso: julio-2010
Mensajes: 1
Antigüedad: 13 años, 9 meses
Puntos: 0
Formularios Html. action input="image"

Hola a Todos ! . tengo un problema con este codigo

<html>
<head>
<script language="JavaScript1.2">



var zoomfactor=0.10 //Enter factor (0.05=5%)



function zoomhelper(){

if (parseInt(whatcache.style.width)>10&&parseInt(what cache.style.height)>10){

whatcache.style.width=parseInt(whatcache.style.wid th)+parseInt(whatcache.style.width)*zoomfactor*pre fix

whatcache.style.height=parseInt(whatcache.style.he ight)+parseInt(whatcache.style.height)*zoomfactor* prefix

}

}



function zoom(originalW, originalH, what, state){

if (!document.all&&!document.getElementById)

return

whatcache=eval("document.images."+what)

prefix=(state=="in")? 1 : -1

if (whatcache.style.width==""||state=="restore"){

whatcache.style.width=originalW+"px"

whatcache.style.height=originalH+"px"

if (state=="restore")

return

}

else{

zoomhelper()

}

beginzoom=setInterval("zoomhelper()",100)

}



function clearzoom(){

if (window.beginzoom)

clearInterval(beginzoom)

}



</script>
<title>

Ingresos de datos con mapas de imagen
</title>
</head>
<body> <!--onload="setupZoom()" -->
<!--<h1>
Ingreso de datos con mapas de imagen
</h1> -->
<form method="post" action="coordenadas2.php">
<!--Haga click en la imagen:
<br>-->
<a href="#" onmouseover="zoom(120,60,'myimage2','in')" onmouseout="clearzoom()"> <img src="../images/lupa3.bmp" border="0" width="17" height="17"></a> | <a href="#" onmouseover="zoom(967,393,'myimage2','restore')"> <img src="../images/lupa2.bmp" border="0" width="17" height="17"></a> | <a href="#" onmouseover="zoom(120,60,'myimage2','out')" onmouseout="clearzoom()"><img src="../images/lupa1.bmp" border="0" width="17" height="17"></a>

<div style="position:relative;width:120;height:60"><div style="position:absolute">

<img name="myimage2" src="../images/padre.png"> | <input name="myimage2" type="image" src="../images/padre.png">
</div></div>

<!--<img class="zoomi" src="map.jpg" alt="map.jpg" /> -->


</form>


</body>
</html>


Sobre la misma imagen, quiero hacer el zoom y cuando de un click sobre la imagen ,realice el action - input para que me envie a otra imagen... pero el problema es que me imprime dos imagenes y en cada una hace algo diferente..
me podrian ayudar a hacer el zoom y el action en la misma imagen ??? ..

Gracias..