PDA

View Full Version : Image Thumbnail Viewer2 combined with Conveyor Belt slideshow



crayfiss
02-23-2008, 06:42 PM
1) Script Title:
Image Thumbnail Viewer2 and Conveyor Belt slideshow
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
3) Describe problem:
Hi I'm trying to combine these two scripts together. The page loads fine with the Conveyor Belt working and all but upon clicking the images there it opens up a new page with the image. What I wanted was to get the image to show up in the <DIV id="adsarea"> tag

After getting the images from mysql DB, the conveyor images is like this
leftrightslide[0]='<a href="ads_thumb.php?aid=1" rel="enlargeimage::click" rev="adsarea"><img src="ads_thumb.php?aid=1" border=1></a>'

Im very new to JS. Any help is appreciated

Cray

crayfiss
02-23-2008, 07:32 PM
Sorry to be a pest but I just figured it out. :P
its the arrangement for the onload of the fillup()

thumbnailviewer2.addEvent(window, function(){fillup()}, "load") //Initialize Conveyor script on page load
thumbnailviewer2.addEvent(window, function(){if (!thumbnailviewer2.alreadyrunflag) thumbnailviewer2.init()}, "load") //Default init method: window.onload
thumbnailviewer2.addEvent(window, function(){thumbnailviewer2.cleanup()}, "unload")

crayfiss
02-23-2008, 07:50 PM
I spoke too soon.. :(

that only works in Safari3 on a mac but not FF2, IE6 and IE7

Anyone have any idea?