also probier es mal so
is ungetestet
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="de" xml:lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="de" />
<style type="text/css">
.thumb{
height:100px;
width:100px;
}
.show{
width:320px;
}
</style>
<script type="text/javascript">
/*<![CDATA[*/
function ShowHide(id) {
obj = document.getElementById(id);
if (obj.style.visibility == 'visible'){obj.style.visibility = 'hidden';}
else {obj.style.visibility = 'visible';}
/*]]>*/
</script>
</head>
<body>
<img onmouseover="ShowHide('layer_xyz')" src="hier ne url von nem kleinen vorschaubild reinkloppen" class="thumb" />
<img id="showpic" src="hier ne url vom ersten grossen bild reinkloppen" class="show" />
</body>
</html>
Alles anzeigen