Technote Details :: I want to move back or forward between photos during slideshow

Issue

I want to add links that take me to the first, previous, next or last photo of the gallery, but I don't know how.

I would also like to display the photo description in a separate div container, not as a tooltip (the default implementation).

How do I do these?

Reason

Read below to find out how to tweak your AJAX photo gallery with these new hidden features.

Solution

To add links for moving to the first, previous, next and last photo from the gallery, please replace the code corresponding to the Play/Pause link for the slideshow:

<a id="gallery_tooglePlay" href="#" on click="gallery_object.togglePlay(900); return false;">Play / Pause</a>

with the following code:

<div>
    <a href="#" on click="gallery_object.first(); return false;">First</a> |
    <a href="#" on click="gallery_object.prev(); return false;">Previous</a> |
    <a id="gallery_tooglePlay" href="#" >Play / Pause</a> |
    <a href="#" on click="gallery_object.next(); return false;">Next</a> |
    <a href="#" on click="gallery_object.last(); return false;">Last</a>
</div>

To display the photo description in a separate div container, not as a tooltip (the default implementation), please insert this code where you want the description to appear:

<div id="gallery_description"></div>

Note: Remember to replace gallery with the name of your gallery (gallery is the default name set by MX AJAX Toolbox).


john gachoka - 02-24-2007 10:07:19 GMT +2

how do i add a link to my message board

 

JFGD - 10-24-2006 07:51:04 GMT +2

AJAX photo gallery


In my "images-img" table, I have a field called "description_img".

How can I dispay this field above or below  each image displayed in the slideshow ?

Thanks

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.