Using Scriptaculous Effect.Grow onload?

  • chibuki
  • Novice
  • Novice
  • chibuki
  • Posts: 22

Post 3+ Months Ago

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 home page.

What can I do to achieve this?

Here are more live demo of these effects.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 53 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.