Results 1 to 3 of 3

Thread: Html form inside Anylink CSS menu

  1. #1
    Join Date
    Jan 2011
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Html form inside Anylink CSS menu

    1) Script Title: AnyLink CSS Menu v2.3

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...anylinkcss.htm

    3) Describe problem: I have placed html form inside Anylink CSS menu. When the input field is clicked the menu disappears.


    Code:
    <div class="rings">
                                        <a href="" class="anchorclass" rel="anylinkrings1">Rings</a>
                                        <div id="anylinkrings1" class="anylinkcsscols3">
                                             <div class="column">
                                                  <h1>Radius (in miles)</h1>
                                                  <form name="ringsdist" method="post" action="scripts/rings.php">
                                                        <input type="text" name="strfirstdist" value="1" onfocus="if (this.value == '1') {this.value = '';}" onblur="if (this.value == '') {this.value = '1';}" />
                                                        <input type="text" name="strseconddist" value="3" onfocus="if (this.value == '3') {this.value = '';}" onblur="if (this.value == '') {this.value = '3';}" />
                                                        <input type="text" name="strthirddist" value="5" onfocus="if (this.value == '5') {this.value = '';}" onblur="if (this.value == '') {this.value = '5';}" />
                                                        <input type="submit" value="">
                                                  </form>
                                             </div>
                                        </div>
                                   </div>
    Any help ?
    Last edited by Paramasivan; 02-26-2013 at 06:15 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,896
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Sure, try the below modified .js file, which prevents the drop down menu from hiding when the user clicks on a form related element inside it.
    Attached Files Attached Files
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Paramasivan (02-26-2013)

  4. #3
    Join Date
    Jan 2011
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much for your quick response !

    "Rings", "Donuts" & "Drive Times" are now working at http://giswebsites.com/grant/property-search.html
    Last edited by Paramasivan; 02-26-2013 at 06:46 AM.

Similar Threads

  1. AnyLink CSS Menu - MSIE8 - inside frameset
    By XanderDude in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-28-2009, 11:23 AM
  2. Replies: 3
    Last Post: 02-25-2009, 12:42 AM
  3. Replies: 5
    Last Post: 04-02-2007, 12:37 PM
  4. html inside thumbnail gallery?
    By djk in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-25-2006, 06:40 AM
  5. Product tabs inside html
    By Irin in forum HTML
    Replies: 0
    Last Post: 06-26-2006, 05:30 AM

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
  •