I was using this javascript swap image program; http://www.alistapart.com/articles/imagegallery and managed to get a test page working with all the variables I want to display when I click on an image. When I went to paste it into the main site which uses the format $contents .= "{display HTML code}"; include "template.php"; (Where the template prints the $contents) It stopped catching the links and went straight to the link containing the image. The thing I dont get is that when I go to view page source of both files it's the exact same code that is being outputted. Could it be because I'm using javascript from within PHP?
okay, i've fixed that problem now. The next problem is how to get a live link to display on the fly using this system.