Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:09

Dynamic Menu Text

Poster: myates
Dated: Monday September 29 2003 - 8:04:58 BST

Is there a way to enter dynamicly generated menu text, i.e. I calculate the date of the previous 9 Sundays and create a text string for each of those days (e.g. Sunday, September 28, 2003) and want to use that generated text string as the menu text for a submenu.

For example:

This of course, does not work since the text that follows 'text=' is taken as literal.

Poster: Hergio
Dated: Tuesday September 30 2003 - 1:02:23 BST

Sure can....You have to put the variables outside of the quotes, since you dont want them to be taken literally (which I string is..a literal). Two examples ensue...

sunday1 = "9/28/2003";
S1T = "9/21/2003";
S1url = "somepage.asp?date=3/3/2003";

aI("text=" + S1T + ";url=somepage.asp?aDate=" + S1T + ";);


Poster: myates
Dated: Tuesday September 30 2003 - 1:04:44 BST

Thank you very much!!