PDA

View Full Version : mega drop down menu click action



pase
08-23-2011, 12:34 AM
I am installing the mega drop down menu from DD. I would like to find out how to change the mouse over action on the drop down menu buttons to a on click action. Below is a link with the current mouse over action.
attentively,

http://pabloserrano.com/test/liashkov/home.html

jscheuer1
08-23-2011, 01:58 AM
Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) for more information.

That said, get rid of the second docinit(). You're not using it. To change to click activation, use the trigger property as stated on the demo page:


ddmegamenu.docinit() settings
setting / option Description
. . .
trigger - How the Menu should be triggered. The default is "mouseover", or when the mouse rolls over the anchor link. Supported values are: "mouseover" and "click".

In other words, change:


<script>

ddmegamenu.docinit({
menuid:'solidmenu',
dur:400 //<--no comma after last setting
})


ddmegamenu.docinit({
menuid:'megaanchorlink',
dur:500,
easing:'easeInOutCirc' //<--no comma after last setting
})

</script>

to:


<script type="text/javascript">

ddmegamenu.docinit({
menuid:'solidmenu',
trigger:'click',
dur:400 //<--no comma after last setting
})

</script>

pase
08-23-2011, 09:09 PM
thanks for your replay. The menu is working great!