Auto slideshow with JavaScript Api

196 views
Skip to first unread message

ghego1

unread,
Nov 28, 2011, 4:01:41 AM11/28/11
to panora...@googlegroups.com
Is it possible to make an auto slideshow using the javascript Api?
I need to use the rect class, so I can't use the html Api, but then I can't figure out how to make an auto slideshow as the one provided by Panoramio with the html api.
Anyone knows how to do it?
Thank's so much!

junk0128

unread,
Nov 29, 2011, 2:09:43 AM11/29/11
to panora...@googlegroups.com
It is possible.  "setTimeout" or "setInterval" is used.
The present position is read by "getPosition()"
and a position is updated by "setPosition (index)."

Example
if (!widget.getAtEnd()) {
  index = widget.getPosition();
  widget.setPosition(index+1);
}

Egil Orndal

unread,
Oct 18, 2012, 5:07:03 AM10/18/12
to panora...@googlegroups.com
Do you think you can expand on your reply? I've been looking thorugh the API reference and I've found nothing on "setTimeout" or "setInterval".
Reply all
Reply to author
Forward
0 new messages