Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:27
itemOn
Poster: posword
Dated: Sunday October 14 2007 - 3:12:08 BST
I'm wanting to make the first item of my menu to automatically show the submenu when the Home page is loaded (see http://peterwade.com/. I cannot find an example as to where the "itemOn" variable should be placed. Any suggestions?
Thanks,
Peter
Re: itemOn
Poster: Ruth
Dated: Sunday October 14 2007 - 8:29:17 BST
Hiya Peter
I have no idea how that particular function is used. I know I've seen it on pages on this site, but have no idea which ones.
If what you are trying to do is have the submenu for that item open when you get there, I think you want the bolt on module openmenusbyurl.js. I also think that you would have to set up pagematch in that item. I know that you can now do multiple page matches. The reason I say this is, the person can get there by the url you have in the post, but can they get there also using that url plus index. whatever extension? If so you'd need to show a page match for all the urls possible for that first item. You would declare them as normal, but separate them by a comma. So,
Code:
pagematch=http://www.milonic.com/, http://www.milonic.com/index.php, http://www.milonic.co.uk;
You can get the module here almost to the bottom. http://www.milonic.com/menumodules.php
Hope this helps. I don't know how to use the itemOn, itemOff function. If you do a search for itemOn in this forum it gives a number of posts [only one page so not too many] Maybe you can figure out from them about using it.
Ruth