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
On Sep 28, 5:08 pm, playaz
<playazcl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---