/    Sign up×
Community /Pin to ProfileBookmark

JS Menu: Got make it ‘click on & roll off’

Hi Everybody,

Been browsing through the pages of this amazing forum and haven’t seen my specific problem addressed, so here goes:

I have this drop-down menu:
[url]http://www.darraghcostello.com/javascript/cms/page.html[/url]

that calls this .js file:
[url]http://www.darraghcostello.com/javascript/cms/assets/js/scripts_dropdown.js[/url]

I inherited this .js menu from the original designer that the client hired but now the client wants to change how it behaves.

Specificially,

[LIST]

  • [*]

    The menu should not ‘drop-down’ until it is clicked on by the mouse.


  • [*]

    It should disappear – or roll back up – when the user rolls away with their mouse.


  • [/LIST]

    I think this is refered to as ‘click on & roll off’.

    I’m hoping this should be a fairly straight forward edit to the .js file.

    I would be hugely grateful if anyone could take the time to have a go at it.

    Deek.

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @deeksterauthorJun 23.2007 — Would it be better if I posted the code directly?
    Copy linkTweet thisAlerts:
    @deeksterauthorJun 23.2007 — So, anyone got any ideas on this one?
    ×

    Success!

    Help @deekster spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.24,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...