You can do the following things to avoid the going to the "href" part so that your viewers will only get a single popup window in which they can view the clicked image and I think this is the nature you want.
1. You can convert your current needed hyperlinks to the following manner. Highlighted the changes.
Code:
<a onclick="MM_openBrWindow('images/queenofbavaria.jpg','QueenofBavaria','width=160,height=300')" href=[ICODE]"#"
><img height="55" width="110" alt="Hand-fed Queen of Bavaria" src="images/queenofbavariat-n.jpg"/></a>[/CODE]
Make sure that you do this for all the images in the gallery and you can remove the 'target=_blank' attribute from the anchor elements.
2. You can do it like the following:
Code:
<a onclick="MM_openBrWindow('images/queenofbavaria.jpg','QueenofBavaria','width=160,height=300')[ICODE];return false;[ICODE]" href="images/queenofbavaria.jpg"><img height="55" width="110" alt="Hand-fed Queen of Bavaria" src="images/queenofbavariat-n.jpg"/></a>
In this case when a user clicks on the image it will execute the JS function meant for 'onclick' event and after that it will not go to the 'href' part like in the normal operations.
But you can avoid this method completely and use the 'onclick' event on the img element so that you can avoid all these confusions. Like the following manner:
Code:
<img height="55" width="110" alt="Hand-fed Queen of Bavaria" src="images/queenofbavariat-n.jpg" onclick="MM_openBrWindow('images/queenofbavaria.jpg','QueenofBavaria','width=160,height=300');return false;"/>
A problem I've noticed with your page is the image click event behaves differently for different images, which I think needs to be avoided. You have to follow a particular method
Another problem noticed is the following markup contains incorrect image path name
Code:
<a onclick="MM_openBrWindow('africangreybaby.jpg','AfricanGreyBaby','width=183,height=275')" target="_blank" href="images/africangreybaby.jpg"><img height="55" width="110" alt="Hand-fed African Grey" src="images/africangreybabyt-n.jpg"/></a>
It seems that the highlighted item should be 'images/africangreybaby.jpg'
The important part is make sure that all the hyperlinks opens up the image using the JS like the way I've mentioned in the first case or in the second case. Currently it is not like that in your page.
The image name you've mentioned as the first argument of 'MM_openBrWindow' function in some place seems to be missing the image extension.
Hope this helps
Bookmarks