Having problems with DHTML Menu? There is usually somebody here who knows the answer.
MacMac
Beginner
Posts: 5 Joined: Mon Aug 02, 2004 7:25 am
Location: Hobart Tasmania
Post
by MacMac » Wed Aug 11, 2004 5:20 am
I have a very simple menu.
Data code follows
Code: Select all
_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?
kevin3442
Milonic God
Posts: 2460 Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:
Post
by kevin3442 » Wed Aug 11, 2004 6:36 am
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
MacMac
Beginner
Posts: 5 Joined: Mon Aug 02, 2004 7:25 am
Location: Hobart Tasmania
Post
by MacMac » Wed Aug 11, 2004 7:37 am
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
fredlongworthhighschool
Mega Advanced
Posts: 362 Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:
Post
by fredlongworthhighschool » Wed Aug 11, 2004 1:49 pm
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.
Andy Davis
Web Designer & Smartboard Manager
Fred Longworth High School, Manchester, England.
MacMac
Beginner
Posts: 5 Joined: Mon Aug 02, 2004 7:25 am
Location: Hobart Tasmania
Post
by MacMac » Wed Aug 11, 2004 11:46 pm
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
John
Team
Posts: 5967 Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:
Post
by John » Thu Aug 12, 2004 4:09 am
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.
John
MacMac
Beginner
Posts: 5 Joined: Mon Aug 02, 2004 7:25 am
Location: Hobart Tasmania
Post
by MacMac » Thu Aug 12, 2004 4:50 am
Thanks for that. It fixes the problem. I thought I had the latest version so I did not even consider that solution