Ablaufplan:
1. Bild ist verkleinert zu sehen (38x38 Pixel)
2. Mit Maus drüber gehen .> Bild wird in Stufen (2 Pixel) vergrößert (bis Endformat: 70 x70 Pixel)
3. Maus wieder runter vom Bild -> Bild soll sich wieder verkleiner <---- Und da ist das Problem!
function eZoomIn(Bildname)
{
window.clearTimeout(OutAktiv);
var bildobjekt = eval("document."+Bildname);
bildobjekt.width=x;
bildobjekt.height=y;
x = (x < maxx) ? x + 2 : x ;
y = (y < maxy) ? y + 2 : y ;
InAktiv = setTimeout("eZoomIn('"+Bildname+"'), 150");
}
function eZoomOut(Bildname)
{
window.clearTimeout(InAktiv);
var bildobjekt = eval("document."+Bildname);
bildobjekt.width=x;
bildobjekt.height=y;
x = (x >= minx) ? x - 2 : x ;
y = (y >= miny) ? y - 2 : y ;
OutAktiv = setTimeout("eZoomOut('"+Bildname+"'), 150");
}
//-->
</script>
</head>
<body>
<center>
<img src="bildchen.gif" alt="#" id="Bild1" name="Bild1" width="38" height="38" onmouseover="eZoomIn('Bild1');" onmouseout="eZoomOut('Bild1');" />
</center>
</body>
</html>
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst an Umfragen in diesem Forum nicht mitmachen.
Mediengestalter.info ist ein Projekt von Webformatik:: Forensoftware: phpBB