You can dynamically select a particular menu item within a Gooey menu by adding the below function inside the HEAD section of your page:
Code:
<script>
function hoverover(menuid, select){
jQuery('#'+menuid).find('a').eq(select).trigger('mouseover')
}
</script>
It excepts two parameters- the ID of your Gooey Menu container, and an integer reflecting the menu item within it you wish to select (0=1st item, 1=2nd item etc). Given the below Gooey Menu for example:
Code:
<ul id="gooeymenu1" class="gelbuttonmenu">
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
<li><a href="http://tools.dynamicdrive.com">Tools</a></li>
<li><a href="http://www.javascriptkit.com/" class="selected">JavaScript</a></li>
<li><a href="http://www.cssdrive.com">CSS Gallery</a></li>
</ul>
<script>
gooeymenu.setup({id:'gooeymenu1'})
</script>
The following link when clicked on dynamically selects the 1st menu item within it:
Code:
<a href="javascript:hoverover('gooeymenu1', 0)">Select 1st item</a>
Bookmarks