Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
You have an edited copy of the script:
Code:
var imageHTML='<img src="'+imagepath+' />' //Construct HTML for enlarged image
var imageHTML='<img src="'+imagepath+'" style="border-width: 0" />' //Construct HTML for enlarged image
Your line is red, the original is green. The only reason I can think of to change this is to allow for a style border. However, when you do so, you need to retain the closing " for the src attribute:
Code:
var imageHTML='<img src="'+imagepath+'" />' //Construct HTML for enlarged image
Now, I was experimenting with this locally, and I think you may also need to remove the defer="defer" from the script tag. Otherwise, I was still getting the image alone on the first try, after that it worked. But that might be an artifact of trying it locally with your complex setup. If there are still problems after fixing the other things, get rid of it (red):
Code:
<script type="text/javascript" src="http://www.samuelgertler.com/js/thumbnailviewer2.js" defer="defer">
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
Bookmarks