Image Slideshow (with clickable URL)

0 views
Skip to first unread message

playaz

unread,
Sep 28, 2007, 8:08:16 AM9/28/07
to Ruby on Rails: Spinoffs
Hi,

I am looking for solution to the following problem - I require a
slideshow effect that will fade in/out a number of images each one
clickable with a unique URL - this would require some javascript
(possibly ajax)

All the images/urls will come from an php array (eg dynamic rather
than static)

Can anyone point me in the right direction of advice on how to achieve
this?

Thanks in advance

Prateek

unread,
Sep 28, 2007, 1:46:06 PM9/28/07
to Ruby on Rails: Spinoffs
See you can get the details about the images like their URL, and the
URL they are supposed to link to. You can get this data from PHP in
the form of JSON, so that the JS code is easier to write. You will
setup an Ajax.Request to get this data and then render all the images
and hide them. Then you will show just one of them, and on the click
of some button you can hide the one being shown now and switch to
another one, by fading(Effect.Fade) the originial one and making the
new one appear(Effect.Appear).

If you are looking for help in terms of code you can also check out -
http://www.prototypejs.org/api
http://wiki.script.aculo.us/scriptaculous/show/HomePage

Reply all
Reply to author
Forward
0 new messages