jimdaug
11-25-2007, 08:13 AM
1) Script Title: Image Thumbnail Viewer
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm
3) Describe problem:
Hi, great script. I am currently using it with cmotion for my portfolio site, here http://www.jimdaug.com/gallery.html. I wouldn't call myself a great programmer, but I seem to know enough to understand the scripts involved. I would like to alter the thumbnail script to display videos in .mov and .wmv format on a different gallery page. My first idea was to alter the part that generates the html for the image source and change it to an iframe.
instead of this:
var imageHTML='<img src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" />'
this:
var imageHTML='<iframe src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" > </iframe>'
using this as the link in the body:
<a href="movs/swat2.mov" rel="thumbnail"> <img src="images/thumbnails/BW/swatWire.jpg" name="swatWire" id="swatWire" /><br></a>
but it doesn't work. The loading .gif comes up, but then the browser just goes to the file like I had clicked on a normal link. same with an html as the href. There is obviously more going on than I understand. This seems pretty simple and I understand 90% of the code. There must be something simple that I am missing. Thanks for any help you can provide. Link to test page http://www.jimdaug.com/vidGalleryTest.html
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm
3) Describe problem:
Hi, great script. I am currently using it with cmotion for my portfolio site, here http://www.jimdaug.com/gallery.html. I wouldn't call myself a great programmer, but I seem to know enough to understand the scripts involved. I would like to alter the thumbnail script to display videos in .mov and .wmv format on a different gallery page. My first idea was to alter the part that generates the html for the image source and change it to an iframe.
instead of this:
var imageHTML='<img src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" />'
this:
var imageHTML='<iframe src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" > </iframe>'
using this as the link in the body:
<a href="movs/swat2.mov" rel="thumbnail"> <img src="images/thumbnails/BW/swatWire.jpg" name="swatWire" id="swatWire" /><br></a>
but it doesn't work. The loading .gif comes up, but then the browser just goes to the file like I had clicked on a normal link. same with an html as the href. There is obviously more going on than I understand. This seems pretty simple and I understand 90% of the code. There must be something simple that I am missing. Thanks for any help you can provide. Link to test page http://www.jimdaug.com/vidGalleryTest.html