ZenphotoCMS Forum
creating an imagemap, which function to use? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: creating an imagemap, which function to use? (/thread-712.html)



creating an imagemap, which function to use? - benneh - 2006-08-01

just trying to make my first theme and I want to turn the main image into an imagemap so clicking anywhere in the right half moves to the next picture, and clicking the left half moves to the last picture. here is my code:

<div id="image">
<MAP NAME = "imagenav">
<AREA SHAPE="rect" COORDS="0,0 200,200" href="<?=getPrevImageURL();?>">
</MAP>
<IMG src="<?php echo getFullImageURL();?>" USEMAP="#imagenav">
</div>

now this works when I use getFullImageURL, but I only want the sized image, but when I replace that function call with getSizedImageURL() it doesn't work? can anyone tell me what I am doing wrong? ( ps i only know enough php to be dangerous Smile )


creating an imagemap, which function to use? - benneh - 2006-08-01

ah, never mind, i figured this out on my own... using
<IMG src="<?php echo getDefaultSizedImage();?>" USEMAP="#imagenav">

so expect to see a new theme from me sometime soon Smile