eraserhead
04-05-2007, 10:38 AM
Hi there!
Is it possible to click on one half of the image area for previous link and the other half for a next link? I am trying to modify the following code to work for different image sizes, but I can't make it work as you need to generate different co-ords for each image.
Maybe its impossible or I need to try something different:
<img src="images/<IMAGE_NAME>" alt="" title="" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" usemap="#map_prevnext" />
</a>
<map name="map_prevnext">
<area shape=rect coords="0,0,242,710" alt="" border="0" title="<<" href="index.php?showimage=<IMAGE_NEXT_ID>" />
<area shape=rect coords="243,0,1016,710" alt="" border="0" title=">>" href="index.php?showimage=<IMAGE_PREVIOUS_ID>" />
</map>
Many thanks
Rob
Is it possible to click on one half of the image area for previous link and the other half for a next link? I am trying to modify the following code to work for different image sizes, but I can't make it work as you need to generate different co-ords for each image.
Maybe its impossible or I need to try something different:
<img src="images/<IMAGE_NAME>" alt="" title="" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" usemap="#map_prevnext" />
</a>
<map name="map_prevnext">
<area shape=rect coords="0,0,242,710" alt="" border="0" title="<<" href="index.php?showimage=<IMAGE_NEXT_ID>" />
<area shape=rect coords="243,0,1016,710" alt="" border="0" title=">>" href="index.php?showimage=<IMAGE_PREVIOUS_ID>" />
</map>
Many thanks
Rob