Guten Abend,
leider muss ich mit einem Problem kämpfen, bei dem ich leider nicht weiterkomme, weshalb ich Eure kompetente Hilfe in Anspruch nehmen möchte.
Folgende simple Bildgalerie funktioniert eigentlich, jedoch gar nicht in NS 4.x. Nur ein Klick (der erste) - leider.
Ich weiss wirklich nicht mehr weiter...
http://www.tuellmann.net/Rossner/galerie_m/gallerie_or.html
oder wie folgt:
<html>
<head>
<title>ROSSNER LICHTBILDER</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
// GLOBALE VARIABLEN
// index counter
var current_index = 1;
// number of images
// HIER DIE ANZAHL DER BILDER IN EINER GALLERIE AENDERN
var max_image = 14
// load menu_images
var menuNormal = new Array;
menuNormal[0] = new Image; menuNormal[0].src="../bag.gif";
menuNormal[1] = new Image; menuNormal[1].src="../clg.gif";
menuNormal[2] = new Image; //dummy
menuNormal[3] = new Image; menuNormal[3].src="../fog.gif";
var menuHighlight = new Array;
menuHighlight[0] = new Image; menuHighlight[0].src="../baw.gif";
menuHighlight[1] = new Image; menuHighlight[1].src="../clw.gif";
menuNormal[2] = new Image; //dummy
menuHighlight[3] = new Image; menuHighlight[3].src="../fow.gif";
// load display_images
var displayImages = new Array;
for(var i = 1; i < max_image+1; i++) {
var name = 0;
if(i < 10){
name = "0"+i+".jpg";
}
else{
name = i+".jpg";
}
displayImages[i] = new Image; displayImages[i].src= name;
}
function menuOver(index) {
document.images[index].src = menuHighlight[index].src;
}
function menuOut(index) {
document.images[index].src = menuNormal[index].src;
}
// direction: true=forwards, false=backwards
function switchImage(direction) {
if(direction == true){
current_index++;
if(current_index > max_image-1 || current_index == 0) {
current_index = 1;
}
}
else{
current_index--;
if(current_index < 1) {
current_index = max_image;
}
}
document.images[2].src = displayImages[current_index].src;
}
function linie(x)
{
if (document.all) x.blur();
}
</script>
</head>
<body bgcolor="#000000" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" align="center">
<tr>
<td align="center" valign="middle">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="middle" align="right">
<p> <a href="#" onMouseOver="menuOver(0)" onMouseOut="menuOut(0)" onClick="switchImage(false);linie(this)">
<img border="0" src="../bag.gif" width="12" height="12"></a>
<a href="../../index_m/index_m.html" onClick="linie(this);" onMouseOver="menuOver(1)" onMouseOut="menuOut(1)">
<img border="0" src="../clg.gif" width="12" height="12"></a>
</p>
</td>
<td valign="middle" align="center">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" valign="middle"><img src = "01.jpg"></td>
</tr>
</table>
</td>
<td valign="middle" align="left">
<p> <a href="#" onMouseOver="menuOver(3)" onMouseOut="menuOut(3)" onClick="switchImage(true);linie(this)">
<img border="0" src="../fog.gif" width="12" height="12"></a></p>
</td>
</tr>
<tr>
<td> </td>
<td align="center"><img src="../../l.gif" alt="" width="510" height="1"></td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
danke,
Joern