Looks like both ddadmin and I misunderstood the question. For that, the script tag:
Code:
<script type="text/javascript" src="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>
would need to go on the page in the iframe, and this line in the script would need to be changed:
Code:
loadimage:function(linkobj){
var imagepath=linkobj.getAttribute("href") //Get URL to enlarged image
var showcontainer=document.getElementById(linkobj.getAttribute("rev").split("::")[0]) //Reference container on page to show enlarged image in
var dest=linkobj.getAttribute("rev").split("::")[1] //Get URL enlarged image should be linked to, if any
var description=(thumbnailviewer2.enableTitle && linkobj.getAttribute("title"))? linkobj.getAttribute("title") : "" //Get title attr
var imageHTML='<img src="'+ima
to:
Code:
showcontainer=parent.document.getElementById(linkobj.getAttribute("rev").split("::")[0]) //Reference container on page to show enlarged image in
There could still be problems. If so, try getting rid of the defer attribute:
Code:
<script type="text/javascript" src="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>
But you could use the script (with no changes) and thumbnails all on one page and instead of an iframe:
Code:
<td width="370" height="325" align="left">
<div style="width:370px;height:325px;overflow:auto;">
HTML for thumbnails goes here
</div></td>
<td width="250"><div id="loadarea" style="width: 250px; height: 365px"></div></td>
Bookmarks