Csteidle: Image Maps - Prozentangaben als Koordinaten untauglich

Beitrag lesen

so nun funktioniert´s und zwar so:

  
<!-- Bild -->  
       <img name="slide" src="${imagePath}" usemap ="#clickmap"/>  
        <map id ="clickmap" name="clickmap">  
<!-- zurück im Bild -->  
[code lang=javascript]  
         <script type="text/javascript">  
document.write('<area shape ="rect" coords="0,0,' + document.slide.width/2 + "," + document.slide.height + '"href ="${previousPage}"/>');  
        </script>  

<!-- weiter im Bild -->
        <script type="text/javascript">
          document.write('<area shape ="rect" coords="' + document.slide.width/2 + ",0," + document.slide.width + "," + document.slide.height + '"href ="${nextPage}"/>');
        </script>
      </map>
[/code]