SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mootools help

  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mootools help

    Respected,

    I need simple div show/hide using the mootools framework 1.2.

    I would like when clicking on More details, or Additional Information1 or Additional Information2, inside the content-box-text to appear another text.

    Can anyone help?

    This is my code:

    <div id="main">
    <div class="divlayer">
    <div class="layer-box">
    <div class="content-box">
    <div class="content-box-title"><a href="#">Project name</a></div>
    <div class="content-box-more-info"><strong>
    <a href="#">More details</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">Additional information1</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">Additional information1</a>&nbsp;&nbsp;|&nbsp;&nbsp;url:&nbsp;<a href="#">Url</a>
    </strong> </div>
    <div class="content-box-text">
    <h1>Title</h1>
    Dummy text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text.
    <br /><br />
    Dummy text, text, text, text, text, text, text, text, text, text, text, text, text, text, text.
    <h2>Subtitle</h2>
    Dummy text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text. <br /><br />
    </div>
    </div>
    </div>

    </div>

    Thank you for your time.
    Attached Files Attached Files

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    There's a couple of demos that should help you out here.
    http://demos.mootools.net/Fx.Slide
    http://demos.mootools.net/Accordion
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •