CMS IMAGES
6 posts by 2 authors in: Forums > CMS Builder
Last Post: May 2, 2008 (RSS)
By jaurday - April 25, 2008
//define images.
photos[0]="photo1.jpg"
photos[1]="photo2.jpg"
photos[2]="photo3.jpg"
The full script I would like to use with the images from my viewerpage can be found here:
http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm
Re: [jaurday] CMS IMAGES
By Dave - April 25, 2008
Yes, you're right. It's just as simple as moving the fields around. You'll see some code like this that displays the images:
<?php foreach (getUploads(...) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
<?php endif ?>
<?php endforeach; ?>
Just replace that with this:
<?php foreach (getUploads(...) as $upload): ?>
photos.push("<?php echo $upload['urlPath'] ?>");
<?php endforeach; ?>
And that will produce code like this:
photos.push("/full/path/to/photo1.jpg");
photos.push("/full/path/to/photo2.jpg");
photos.push("/full/path/to/photo3.jpg");
I just used push instead of [number] to add the photos to the javascript array. It does the same thing.
Let me know if that works for you or if you need any more help with it! :)
interactivetools.com
Re: [Dave] CMS IMAGES
By jaurday - April 30, 2008
http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm[/#333366]
It's a "hybridized" question, I know it's not your arena but I thought maybe you could help since I was able to use it with my cms produced images (yes!).
Re: [jaurday] CMS IMAGES
By Dave - May 1, 2008 - edited: May 1, 2008
function applyeffect(){ return;
...
function playeffect(){ return;
...
Let me know if that works for you.
interactivetools.com
Re: [Dave] CMS IMAGES
By jaurday - May 2, 2008