Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery Accordion

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29904
    BarsikSoftPaws
    Participant

    Hi guys!
    I’m not strong with Java Script. I want to implement simple Accordion to my page.
    I did it with MooTools before, but now I want Jquery as basement.
    Ok, so I took this as beginning http://docs.jquery.com/UI/Accordion
    And I want to make few adjustments. Want to be able to control the speed of opening and closing, and height. Cause in this one the height is taken of the biggest content (kinda ugly if you have very small and very big texts :) )

    so this I have for now

    now how can I control speed and height? Anybody? Somebody? :)

    Oh, yeah… And for future, it opens now first one, which is what I want. But how can I control it too? :)

    #79915
    BarsikSoftPaws
    Participant

    I am using just divs, but am open to everything as far as it works :)

    Section 1

    Mauris mauris ante….

    Section 2

    Sed non urna. Donec et ante…

    #79916
    BarsikSoftPaws
    Participant

    ehhh… somehow it just posted it coded :)

    <...div id="accordion">
    <...h3>Section 1
    <...div>
    <...p>
    Mauris mauris ante…
    <.../p>
    <.../div>
    <...h3>Section 2
    <...div>
    <...p>
    Sed non urna. Donec et ante…
    <.../p>
    <.../div>
    <.../div>

    #79910
    BarsikSoftPaws
    Participant

    <...h3> is closed of course… it’s just keeping swallowing the code, but I hope it’s understandable :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.