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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:15

Problem with url in menu


Poster: MacMac
Dated: Wednesday August 11 2004 - 5:20:41 BST

I have a very simple menu.
Data code follows
Code:


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=250            // The time delay before menus open on mouse over
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset


with(topMenuStyle=new mm_style()){
   onbgcolor="#8B1C60";
   offbgcolor="transparent";
   oncolor="#ffffff";
   visitedcolor="black";
   borderwidth=0;
   separatorcolor="#ffffff";
   separatorsize="1";
   separatorpadding=5;
   padding=2;
   fontsize="8pt";
   fontstyle="normal";
   fontfamily="Verdana, Tahoma, sans-serif";
   overfilter="Fade(duration=0.2);Alpha(opacity=100);";
   pointer="hand";
}

with(topSearchStyle=new mm_style()){
   onbgcolor="#8B1C60";
   oncolor="#ffffff";
   offbgcolor="#7E7E7E";
   bgimage='images/menu_bg.gif';
   borderwidth=1;
   bordercolor="black";
   borderstyle="solid";
   separatorcolor="#ffffff";
   separatorsize="1";
   padding=4;
   fontsize="8pt";
   fontstyle="normal";
   fontfamily="Verdana, Tahoma, sans-serif";
   pagecolor="black";
   pagebgcolor="#82B6D7";
   subimage="images/arrow.gif";
   subimagepadding="2";
   overfilter="Fade(duration=0.2);Alpha(opacity=100);";
   outfilter="randomdissolve(duration=0.3)";
   pointer="hand";
}


with(milonic=new menuname("Top Menu")){
   style=topMenuStyle;
   alwaysvisible=1;
   left="offset=-200";
   screenposition="top;right"
   orientation="horizontal";
   aI("text=INTRANET;url=http://info.hutchins.tas.edu.au;");
   aI("text=SCHOOL MAIL;url=http://icarus.hutchins.tas.edu.au;");
   aI("text=SEARCH;showmenu=Top Search;itemwidth=100;");
}

with(milonic=new menuname("Top Search")){
   style=topSearchStyle;
   aI("text=<FORM METHOD=GET ACTION=search.aspx name=searchIndex>SEARCH HUTCHINS <input name=criteria size=15><input type=submit value=Go></form>;type=form;");
}

drawMenus();



As can be seen from the code, there are two url links on the menu options.

The problem is, when I click on them, nothing happens!

Any ideas?


Poster: kevin3442
Dated: Wednesday August 11 2004 - 6:36:09 BST

Hi Mac^2,

I tried your code in IE6/Win2K. The URLs worked, so I'm not sure what's up. What browser/os are you using? Do you have a live test site running that you could post a url to?

Kevin


Poster: MacMac
Dated: Wednesday August 11 2004 - 7:37:25 BST

I am using IE 6 on Windows XP SP 1. At this stage I do not have a live version I can show you. It should not make any difference but the data file name is seach_menu_data.js


Poster: fredlongworthhighschool
Dated: Wednesday August 11 2004 - 13:49:26 BST

Your data works on a test site I've created, too.

Your best bet would be to upload so we can see the rest of the file structure.


Poster: MacMac
Dated: Wednesday August 11 2004 - 23:46:15 BST

Hi,
I have test page to a web server. It is just the basic menu page supplied by Milonic with the modified search_menu_data.js page above.

See http://info.hutchins.tas.edu.au/menu/menu.htm


Poster: John
Dated: Thursday August 12 2004 - 4:09:42 BST

Try updating to the current v5.40 (technically nothing but the current version is supported, anyway). You're running 5.31a. Many fixes since then.


Poster: MacMac
Dated: Thursday August 12 2004 - 4:50:58 BST

Thanks for that. It fixes the problem. I thought I had the latest version so I did not even consider that solution :D