Results 1 to 3 of 3

Thread: Adding form in DD slide in menu

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default Adding form in DD slide in menu

    I have a ready made form that I want to add to my slide in menu.
    Is it possible? Can Anyone help me pls.

    Attached the slide in menu (ZIP)

    here's the form
    <form id="myForm">
    <div id="content" style="width:200px; background-color:#808080;">
    <input type="checkbox" value="" onclick="toggleDiv('lyr1','content')">
    <span id="message">click to show</span>
    </div>
    <div id="lyr1" style="visibility:hidden;">Hello Emanuelle!</div>

    <div id="content" style="width:200px; background-color:#808080;">
    <input type="checkbox" value="" onclick="toggleDiv('lyr2','content')">
    <span id="message">click to show</span>
    </div>
    <div id="lyr2" style="visibility:hidden;">Hello Emanuelle!</div>
    </form>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There will be an error when checking the checkboxes without the toggleDiv() function available to the page. Then, layout problems will probably arise when the checkboxes are activated. These cannot be fixed until it is seen exactly what toggleDiv() does to the layout. You probably need to adjust the widths of the elements or of parts of the menu to get things to fit/look better. This will get it into the menu:

    Code:
     . . .
    sitems[9]=["User System Information", "http://www.dynamicdrive.com/dynamicindex9/"]
    sitems[10]=["Other", "http://www.dynamicdrive.com/dynamicindex11/"]
    sitems[11]=["<form id=\"myForm\">\
    <div id=\"content\" style=\"width:200px; background-color:#808080;\">\
    <input type=\"checkbox\" value=\"\" onclick=\"toggleDiv('lyr1','content')\">\
    <span id=\"message\">click to show</span>\
    </div>\
    <div id=\"lyr1\" style=\"visibility:hidden;\">Hello Emanuelle!</div>\
    \
    <div id=\"content\" style=\"width:200px; background-color:#808080;\">\
    <input type=\"checkbox\" value=\"\" onclick=\"toggleDiv('lyr2','content')\">\
    <span id=\"message\">click to show</span>\
    </div>\
    <div id=\"lyr2\" style=\"visibility:hidden;\">Hello Emanuelle!</div>\
    </form>", ""]
    
    //If you want the links to load in another frame/window, specify name of target (ie: target="_new")
    var target=""
    
    /////////////////////////////////////////////////////////
    
    if (ie4||ns4||ns6){
     . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default

    Thank you...

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
  •