Results 1 to 5 of 5

Thread: AnyLink CSS Vertical Menu - on click rather than hover?

  1. #1
    Join Date
    Aug 2006
    Location
    Kent, UK
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink CSS Vertical Menu - on click rather than hover?

    1) Script Title:
    AnyLink CSS Vertical Menu

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

    3) Describe problem:
    Hi everyone

    I was wondering if it's possible to change the behaviour of the AnyLink CSS Vertical Menu script so that the vertical menu pops up when you click the link rather than hover over it.

    Is that possible?
    Or does that represent a pretty major change in the working of the script?

    Thanks in advance

    Ben

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    On the contrary, it's very simple. Take:
    Code:
    <a href="http://www.dynamicdrive.com/" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">Web Design</a>
    And instead use:
    Code:
    <a href="http://www.dynamicdrive.com/" onclick="dropdownmenu(this, event, 'anylinkmenu1');return clickreturnvalue();">Web Design</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2006
    Location
    Kent, UK
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, excellent stuff.
    Works straight away.

    Thanks for the quick reply!

  4. #4
    Join Date
    Aug 2006
    Location
    Kent, UK
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just had one funny thing happen with this though.
    It seems the first time you try and activate it on the page, you have to give it a double click, or 2 consecutive single-clicks.

    From then after a single click works fine.

    This happens in both IE 6 and FF 1.5

    Any ideas or is it just something weird?


    Thanks

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm, sounds odd. Do you have a demo page?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •