It's possible, but it's a lot easier if this width isn't based on the width of each image, but rather, just a manual number you can optionally specify within the HTML:
Code:
<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover::900px" rev="loadarea::http://www.dynamicdrive.com" title="This is an example">Thumbnail Example 1</a><br />
So the part in red is optional, and when defined, would cause the loaddiv to resize to 900px in width when the mouse rolls over this particular thumbnail link.
To enable this, add the below lines in red to the original script:
Code:
if (linkobj.getAttribute("rel").split("::")[2])
showcontainer.style.width=linkobj.getAttribute("rel").split("::")[2]
showcontainer.innerHTML=imageHTML
Bookmarks