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:04
Sending Dynamic Text into the Menu
Poster: orwei
Dated: Thursday November 4 2004 - 21:49:45 GMT
Before i begin, let me say that I am using
Milonic DHTML Menu - JavaScript Website Navigation System. Version 5.50
Ok, so here is what i would like to do. I am calculating a number on the webpage using javascript, and I would like that number to be displayed on a menu item. I don't know how to send my text into the javascript file, so the Milonic menu will display that number i calculated. Can anyone help me out?
For a more detailed descritption, look at my the link below. If you put your cursor on the moving icon, it will display's Milonic dynamic pop up menu. I want a menu item to have the dynamically caluculated number i produce.
http://www-scf.usc.edu/~nchou/588/Map.htm
Thanks for your help!
Poster: kevin3442
Dated: Friday November 5 2004 - 21:47:47 GMT
Your example url didn't work for me (timed out). So I can't give specifics. But there's a function called mm_changeItemProperty(), described in this thread, that can be used to change any menu item property dynamically. You should be able to use it pretty easily to cange the text of a menu item (an item's text property is a codeRef of 1).
Cheers,
Kevin