PDA

View Full Version : image area - next prev links


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

GeoS
04-05-2007, 10:20 PM
It is possible in other way using layers (<div>). Try to look at blogs from this topic:
http://forum.pixelpost.org/showthread.php?t=2375
And for sure you will find some working example.

eraserhead
04-07-2007, 01:06 AM
GeoS: Thanks for the reply, I tried looking at every blog on your link, but none of them use both previous & next links in the image area.

Do you know anything else that might work?

Thanks again, Rob

dakwegmo
04-07-2007, 03:27 AM
I think the 235skin does what you're looking for. You can download it here: http://www.pixelpost.org/v1/index.php?x=downloads&details=178

GeoS
04-08-2007, 06:28 PM
His current one (on his site) for sure uses this feature.

ChrisBaily
04-28-2007, 04:41 PM
I am curious, did you get it to work? I am useing a modified version of the simple template and am trying to get this to work.