Antwort von Mozilla:
Error: doPic is not defined
Source File: javascript:doPic('images/1.jpg');
Line: 1
Noch mal probiert wieder nix erreicht!
PS Möchte einfach nur an der "MAINPIC" - Stelle die Bilder hineinladen! funkt aber nicht!
Was mach ich falsch?
Herzlichen Dank im Voraus
Das ist wirklich sehr nett von Dir.
Hier der Code:
<html>
<head>
<title>Thumbnails</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<SCRIPT LANGUAGE="JavaScript">
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);
function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}
}
</script>
<!--
BODY {scrollbar-face-color: #787878;
scrollbar-highlight-color: #5E5D5D;
scrollbar-shadow-color: #787878;
scrollbar-3dlight-color: #787878;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #787878;
scrollbar-darkshadow-color: #5E5D5D;}
//-->
</style>
</head>
<body bgcolor="#787878" text="#000000">
<table width="1069" border="0" cellspacing="0" cellpadding="0" align="left" height="78">
<tr>
<td width="113"><a href="javascript:doPic('images/1.jpg');"><img src="images/1_.jpg" width="113" height="78" border="0"></a></td>
<td width="15"> </td>
<td width="119"><a href="javascript:doPic('images/2.jpg');"><img src="images/2_.jpg" width="117" height="80" border="0"></a></td>
<td width="15"> </td>
<td width="117"><a href="javascript:doPic('images/3.jpg');"><img src="images/3_.jpg" width="119" height="79" border="0"></a></td>
<td width="15"> </td>
<td width="119"><img src="images/4_.jpg" width="119" height="79"></td>
<td width="15"> </td>
<td width="119"><img src="images/4_.jpg" width="119" height="79"></td>
<td width="15"> </td>
<td width="15"><img src="images/4_.jpg" width="119" height="79"></td>
<td width="15"> </td>
<td width="119"><img src="images/4_.jpg" width="119" height="79"></td>
<td width="15"> </td>
<td width="119"><img src="images/4_.jpg" width="119" height="79"></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center" height="750">
<tr>
<td align="center" valign="middle"><img name="mainpic" src="images/statisch.jpg" width="600" height="600"></td>
</tr>
</table>
</body>
</html>