List Info

Thread: Image Slideshow (with clickable URL)




Image Slideshow (with clickable URL)
country flaguser name
United States
2007-09-28 07:08:16
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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Image Slideshow (with clickable URL)
country flaguser name
United States
2007-09-28 12:46:06
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...gmail.com> 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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )