Hallo zusammen,
hab für einen Freund eine Website erstellt und darin eine Fotogalerie, bei der man mit der Maus nur über das Bild fahren muss und das angesteuerte Bild wird groß angezeigt. Nun zu meinem Problem, das ganze funktioniert einwandfrei im Firefox, nur IE macht Probleme.
Fehlermeldung des IE: "Zeile: 26
Zeichen: 39
Fehler: 'window.document.Ansicht' ist Null oder kein
Objekt
Code: 0
URL:
http://www.streetfighter-customizing.de/site/front.html
------------------------------------------------------------------------------
Hier mal die Source im <head> Bereich:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Streetfighter-Customizing</title>
<link href="../css/basic.css" rel="stylesheet" type="text/css" />
[if IE
<link href="../css/ie.css" rel="stylesheet" type="text/css" />
[endif]
<script type="text/javascript">
{
Zoom1 = new Image();
Zoom1.src = "../pics/front/front1.JPG";
Zoom2 = new Image();
Zoom2.src = "../pics/front/front2.JPG";
Zoom3 = new Image();
Zoom3.src = "../pics/front/front3.JPG";
Zoom4 = new Image();
Zoom4.src = "../pics/front/front4.JPG";
Zoom5 = new Image();
Zoom5.src = "../pics/front/front.JPG";
}
function Bildwechsel (Bildobjekt) { window.document.Ansicht.src = Bildobjekt.src; }
</script>
und hier der Teil im <body> tag
<div id="mainContent">
<br><br><br><br>
<table cellpadding="0" cellspacing="0" border="0" bordercolor="#FFFF00">
<tr><td rowspan="6" align="center"><img src="../pics/front/front.JPG" "name="Ansicht" width="540px" height="400px" />
<td><img src="../pics/front/front1.JPG" width="120px" height="80px" onmouseover="Bildwechsel(Zoom1)" />
<img src="../pics/front/front2.JPG" width="120px" height="80px" onmouseover="Bildwechsel(Zoom2)" />
<img src="../pics/front/front3.JPG" width="120px" height="80px" onmouseover="Bildwechsel(Zoom3)" />
<img src="../pics/front/front4.JPG" width="120px" height="80px" onmouseover="Bildwechsel(Zoom4)" />
<img src="../pics/front/front.JPG" width="120px" height="80px" onmouseover="Bildwechsel(Zoom5)" /></td></tr>
</table>
</div>
----------------------------------------------------------------------------
da ich mich mit Java nicht so gut auskenne, hoffe ich hier mal auf Hilfe.
Ein Dankeschön schon mal im voraus.
Mfg
zx10