Results 1 to 3 of 3

Thread: div and javascript

  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default div and javascript

    Hi, I have a little question about a script in js..the script is this:
    http://www.dynamicdrive.com/dynamici...pdownpanel.htm
    and the question is: if I want to create more than one panel I have to create a lot of <div>, how can I give the name to the div? Thank you very much!

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by number22 View Post
    Hi, I have a little question about a script in js..the script is this:
    http://www.dynamicdrive.com/dynamici...pdownpanel.htm
    and the question is: if I want to create more than one panel I have to create a lot of <div>, how can I give the name to the div? Thank you very much!
    apply id's to the appropriate div/toggle relationships.

    Code:
    <div id="firstToggle">
    ...
    </div>
    <div id="secondToggle">
    ...
    </div>
    <div id="toggle3">
    ...
    </div>

  3. #3
    Join Date
    Jan 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok thank you! Ok thank you, consequently i have to modify this part of the js code:
    Code:
    ids: ["mypanel", "mypanelcontent", "mypaneltab"]
    exatly?
    Thank you very much!

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
  •