Ich stelle das mittels CSS als Hover-Effekt ein. Benutze ich z.B.
hier.
CSS Anweisungen:
Code:
#fotobox {
width:465px;
margin:0;
padding:0;
}
#fotobox a img {
float:right;
height:94px;
width:125px;
border:1px solid #000;
margin:0 0 5px 5px;
}
/* Diese Anweisung für die Anzeige in Geckos, Safarie und Opera */
#fotobox img:hover {
width:300px;
height:225px;
}
/* Ohne diese Anweisung funktioniert das Zoomen im IE nicht */
#fotobox a:hover img {
width:300px;
height:225px;
}
/* Ohne diese Anweisung funktioniert das Zoomen im IE nicht */
#fotobox a:hover {
padding:0;
}