SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementing JS effect

    Hi,

    Im having trouble trying to implement the toogle blind effect as seen here http://scriptaculous.seasidehosting....ZfoFmCMjdRKJoD

    What i want is this div to expand:

    <div id="info"><a onclick="Effect.toggle('toggle','Blind')" href="javascript:void(0)">More Info</a>

    and show the rest of the content, for example it will say "More Info" when the user clicks it will toogle down and reveal the rest of the content which for example sake can be "Heres more info".

    So can someone show me how to do this please?

    Thanks

  2. #2
    SitePoint Zealot bobber205's Avatar
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Respond to the <div> tag's onclick event with a method that changes it's visible value from false to true. It's as easy as that.

  3. #3
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    humm.. not sure i understand. Can you show me an example?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •