Using Scriptaculous Effect.Grow onload?

  • chibuki
  • Novice
  • Novice
  • No Avatar
  • Joined: Oct 18, 2008
  • Posts: 22
  • Status: Offline

Post May 13th, 2009, 2:57 pm

I'm new to Scriptaculous and learned that their stuff are great, but I'm pretty clueless when it comes to DHTML.

I want to use the Effect.Grow by scriptaculous for a div or two, but without an event (onclick) handler. The div should pop up (with the Effect.Grow script) as the page loads, just like the bubbles on the script.aculo.us home page.

What can I do to achieve this?

Here are more live demo of these effects.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 13th, 2009, 2:57 pm

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 13th, 2009, 4:00 pm

If you want to call it on page load, then just move whatever is in your onClick to the body tag...

Code: [ Select ]
<body onLoad="GrowEffect(target);">


If you would like further help, post a link to your site with the code or share it and we can have a better look.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 120 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.