Hi everyone,
i am new to scriptaculous and i have some difficulties to make effects
appear on my website. I will describe shortly: i have a gif image and
2 other DIVs (one is a gif and the other is function called from the
server). I want to call the 2 DIVs parallel with each other, so i use
the Effect.parallel from the library, but when i reload the page i can
see the DIV containing the function from the server displayed, and
when i click on the coffee gif than i can see the other DIV contaning
the other gif image. The code that i am using is writen below. I want
also to use an option that makes the 2 effects (2 DIVs) disappear
after 20 sec. How can i do that?
<div id="Coffee" onClick="new Effect.Parallel(
[new Effect.toggle(''UserListCoffee'',
''appear''),
new Effect.toggle(''CoffeeCloud'', ''appear'')]
;">
<a href="#" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage(''Coffee Cup
Pay'','''',''images/fitmon/
header_coffeecup_up.jpg'',1)"><img src="images/fitmon/
header_coffeecup.jpg" alt="Click me to pay " name="Coffee
Cup Pay"
width="220" height="180" border="0"></a>
</div>
<div id="CoffeeCloud"><img
src="images/fitmon/coffee_cloud.jpg"
alt="Coffee Cloud" width="300" height="500">
</div>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---