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:31

Syntax Problem


Poster: bobwill
Dated: Saturday May 3 2003 - 14:10:41 BST

I cannot make the following code work the way I want it to.

The following line, display the "news.htm" file in a new window, but the description "Open News in Small Window", takes on the colors of the "Properties" array.

,"Open News in Small Window","javascript:openNewWindow(\"news.htm\",200,200,\"\")","# onfontcolor=ffffff;onbackcolor=0000ff;offfontcolor=ffffff;offbackcolor=0000ff;",,1

The following line, changes the description "Open News in Small Window" to the color (blue) that I want, but the "javascript" call does not work.

,"Open News in Small Window","# onfontcolor=ffffff;onbackcolor=0000ff;offfontcolor=ffffff;offbackcolor=0000ff;","javascript:openNewWindow(\"news.htm\",200,200,\"\")",,1

I just want this one menu item to have a different color than the other menu items and execute the javascript on "click". Can someone please give me some suggestions.


Poster: bobwill
Dated: Saturday May 3 2003 - 21:33:10 BST

Forget it, I solved the problem all by myself.