Kumpel: Grafik und Text syncron wechseln!!

Beitrag lesen

Hallo,
kann mir jemand helfen,ich möchte eine Diashow erstellen in der  Bild und Text gleichzeitig(syncron)wechseln.
Folgendes Script habe ich schon, aber die zweite datei wechselt nicht!

Kann mir jemand da weiterhelfen!
Im voraus vielen Dank!!

zum testen habe ich erst mal Grafiken genommen!!(text-Array)

<script language="javascript" type="text/javascript">
bilder=new Array("Gebaeude1.jpg","Gebaeude2.jpg","Gebaeude3.jpg")
text=new Array("Gebaeude1.jpg","Gebaeude2.jpg","Gebaeude3.jpg")
bild=0
text=0
anzahl_bilder=3
anzahl_text=3
zaehler=anzahl_bilder-1
zaehler=anzahl_text-1
function bildPrevious()
{
  if (document.images && bild>0)
  {
      bild--;
      text--;
      document.meinBild.src=bilder[bild];
      document.meinText.src=text[text];
  }
}
function bildNext()
{
   if (document.images && bild<zaehler)
   {
       bild++;
       text++;
       document.meinBild.src=bilder[bild];
       document.meinText.src=text[text];
   }
}

</script>
</head>

<body bgcolor="#D6D59C">
<div align="center">
<table border="0" rules="none" width="40%" height="95%" >
<tr height="10%"><td><h2>Diashow</h2></td></tr>

<tr height="50%"><td>
      <table border="5"><tr><td>
       <table border="3"><tr><td>
       <p align="center"><img SRC="Gebaeude1.jpg" NAME="meinBild" width="441" height="304"> </p>
       </td></tr></table>
</td></tr>

<tr height="30%"><td>
      <p align="center"><img SRC="Gebaeude1.jpg" NAME="meinText" width="141" height="104"> </p>
      </td></tr>
</td></tr></table>

<tr height="10%" ><td>
      <p align="center"><a href="javascript:bildPrevious()">
      <img src="pfeil2.gif"  border="0" width="126" height="48"></a>
      <a href="javascript:bildNext()">
      <img src="pfeil1.gif"  border="0" width="126" height="48"></a></p>