Hi,

as I have made custom nav controls for my slideshow that are situated
in a div below the slideshow itself and I have managed to extract the
image titles from my Atom feed, I am now trying to get a display of
the actual image index.

I am trying to produce the same effect as the standard
'fullControlPanelCursor', i.e.

Image n of n.

I have found a piece of code that uses the 'feedProcessedCallback'
function, not sure whether it is the correct procedure or not.

My code is this:-

function myFeedHandler(result, transitionTime) {
       var imNum = document.getElementById("index");
       var ImIndex = result.feed.entries;
       for (var i=0; i<ImIndex.length + 1; ++i) {
       imNum.innerHTML = i;}
       }

As you can see, I have used  'transitionTime' within the function to
allow the text to be updated on each image change.

Currently, this code only displays the total number of images in the
feed i.e. 20 and outputs this figure to a div with the id 'index'.

How can I change this so that it actually shows '1 of 20', for the
first image, '2 of 20', for the second etc.. etc..

Kind regards..,

MT

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to