sara- The quickest and easiest way to do what you're wanting to do is via a transition callback, which will be called each time a new image is displayed. Essentially, you want to initialize your slideshow as below, which is a modified version of the Hello, World code given in the documentation.
function load() {
var samples = "http://dlc0421.googlepages.com/gfss.rss";
var options = {
displayTime: 2000,
transistionTime: 600,
linkTarget : google.feeds.LINK_TARGET_BLANK, // notice comma here
// here's the important stuff
transitionCallback : function(entry, transitionTime){
var gfs = window.gfs;
if(gfs.images.length > 1 && gfs.current ==
gfs.images[gfs.images.length-1]){
gfs.clearDisplayTimer()
}
}
};
window.gfs = new GFslideShow(samples, "slideshow", options);
}
google.load("feeds", "1");
google.setOnLoadCallback(load);
This code will run the slideshow through and stop on the last image. If you
want it to go through the show and then stop on the first image, you could
change the if statement in the transitionCallback to this:
if(gfs.images.length > 1 && gfs.current == gfs.images[0]){
All of this said, as visionjinx pointed out, it is generally a very good idea
to post a link to your page so that we can see exactly what you're doing,
including any special code considerations.
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
[email protected]
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
On Jan 15, 2010, at 7:54 PM, omr wrote:
> Sara,
>
> Were you asking about the example which Vision Jinx mentioned in his
> reply?
>
> http://www.google.com/uds/solutions/slideshow/
>
> See its documentation:
>
> http://www.google.com/uds/solutions/slideshow/reference.html
>
> In particular, see the "Programmatic Navigation" section on that page.
>
> http://www.google.com/uds/solutions/slideshow/reference.html#_nav
>
> There you can find some information about the navigation functions,
> including a pause and resume function. Does that answer your second
> question (about how to "pause it without hovering over it")?
>
> -- omr
> --
> 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.
>
>
-- 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.
