I have Image Gallery Magic and would like to make links on my page that jump to specific images in the gallery.
Select the text or image you want to use as your link and type a hash mark (#) in Dreamweaver's link box - on the property inspector.
Switch to code view and locate the link you just made. It should look something like this:
<a href="#">Jump to image 3</a>
Enter the function call just to the right of the hash mark's closing quote:
<a href="#" onClick="P7_HGStrig(2)">Jump to image 3</a>
The number in parentheses, after the function name, tells iGM which image to jump to. The images are kept in an array, which starts at number zero, so the third image is actually number 2 in the array (the first image is number zero).
The last step is to set the event to return false, which will prevent the browser from jumping to the top of the page every time the link is clicked.
Insert a semicolon just inside the ending quotation mark and type return false:
<a href="#" onClick="P7_HGStrig(2);return false">Jump to image 3</a>