Grid66
02-08-2008, 08:05 PM
1) Script Title: Image Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem:
I would like to integrate the thumbnail viewer script with the one on this page http://www.jtricks.com/javascript/window/box_centered.html so that when I click on the enlarged image, the pop-up box is displayed with the contents of another page.
So far my amateurish attempts have been unsuccesful. I have tried copying the pop-up centred box script into the page header then (unsuccessfully) amending the thumbnail2 javascript line
imageHTML='<a href="'+dest+'">'+imageHTML+'</a>'
to
imageHTML='<a href="'+dest+'" onclick="return show_hide_box(this, 200, 270, '2px solid')">'+imageHTML+'</a>'
in an attempt to invoke the pop-up box centered script but this doesn't work (embarressed smilie here).
Could someone perhaps suggest a method of integrating these? If it's too complex I won't bother but I was hoping that there is a simple solution.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
3) Describe problem:
I would like to integrate the thumbnail viewer script with the one on this page http://www.jtricks.com/javascript/window/box_centered.html so that when I click on the enlarged image, the pop-up box is displayed with the contents of another page.
So far my amateurish attempts have been unsuccesful. I have tried copying the pop-up centred box script into the page header then (unsuccessfully) amending the thumbnail2 javascript line
imageHTML='<a href="'+dest+'">'+imageHTML+'</a>'
to
imageHTML='<a href="'+dest+'" onclick="return show_hide_box(this, 200, 270, '2px solid')">'+imageHTML+'</a>'
in an attempt to invoke the pop-up box centered script but this doesn't work (embarressed smilie here).
Could someone perhaps suggest a method of integrating these? If it's too complex I won't bother but I was hoping that there is a simple solution.