The DHTML window widget isn't exactly what I had in mind, but thank you for the reply.
If I understand the script, It's basically using the rel="thumbnail" attribute to differentiate those anchors from others that would be on the page, then writes out a div and puts the image source inside it.
What is preventing me from putting something else in that div besides an image?
EDIT starts here...
So after racking my brain for a while I figured out how to do it. And it was quite simple. I modified the html link in the body to look like so
Code:
<a href="images/jpegs/swat.jpg" rel="thumbnail" attr="movs/swat2.mov">
<img src="images/thumbnails/BW/swat.jpg" name="swat" id="swat" />
</a>
Then changed the loadimage:function in the thumnailViewer.js file to this
Code:
var imageHTML='<img src="'+link.getAttribute("href")+'" width="0" style="'+this.opacitystring+'" />' //Construct HTML for shown image
imageHTML+='<iframe src="'+link.getAttribute("attr")+'" width="640" height="495"> </iframe>'
The only caveat currently is the size of the iframe has to be coded into the javascript file. With a little more time, I should be able to size it dynamically.
I'm open for suggestions too. If there is a better way to do it please let me know.
Bookmarks