View Full Version : Thumbnail Viewer Help

03-03-2008, 09:23 PM
1) Script Title: Thumbnail Viewer II
2) Script URL (on DD):
3) Describe problem:

Hello support,

The script works great! I had no problems, but I have a question.

What I would like to do is have the script show the large image when the page loads (based on a value that will be passed in a URL using ColdFusion). We can write the CF to dynamically populate the large and small image thumbnails I believe with no problem to show the remaining items for the gallery.

Please let me know if you think this will be possible!

I appreciate your help in advance!

03-04-2008, 03:36 AM
I know little of CF, other than its being a CMS that employs PHP or some server side stuff to let you include things and write portions of your page from a database. At least I think so. If that isn't too far off the mark, and from what you say, this should be simple.

Just have your page grab the info from from the URL in the normal manner and write the image (and a link and/or a caption) to the interior of the 'loadarea'.

If it were a normal page, you could do this:

<div id="loadarea" style="width: 500px">
<img src="some.jpg"><br>A neat image

Or, using PHP with short_open_tag and some variables (my exact syntax may be off):

<div id="loadarea" style="width: 500px">
<img src="<?=$imgSrc;?>"><br><?=$imgCap;?>

I hope you get the idea, use what's available to you in CF. Whatever you put in there will be overwritten once the user starts activating the thumbnail triggers. But until then, it will be what is seen in that area.