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:01
subImage Problem
Poster: tenchi
Dated: Monday December 20 2004 - 23:07:29 GMT
I am having trouble getting subImages to show up when the page initially loads. If I add the style onSubImage, once the item is moused over one time the image appears. I have also tried mapping to the image various ways, including ../ format and the entire absolute path to the image. Any help would be appreciated. Here is my code:
Code:
<script type="text/javascript" src="/clevops/test/milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic" value="http://www.milonic.com/"></param>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/clevops/test/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/clevops/test/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript">
/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******
*/
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
with(menuStyle=new mm_style()){
subimage="/assest/images/next.gif";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="vertical";
aI("text=Home;url=index.cfm?fuseaction=home;status=Back To Home Page;");
aI("text=Coach Logs;showmenu=Logs;");
aI("text=Observations;showmenu=Observations;");
}
with(milonic=new menuname("Logs")){
style=menuStyle;
overflow="scroll";
aI("text=Create a New Log;url=index.cfm?fuseaction=addLogs;");
aI("text=Coaching Log Reports;url=index.cfm?fuseaction=logReports;");
aI("text=Search Coaching Logs;url=index.cfm?fuseaction=searchLogs;");
}
with(milonic=new menuname("Logs")){
style=menuStyle;
overflow="scroll";
aI("text=Create a New Log;url=index.cfm?fuseaction=addLogs;status=Create a New Coach Log;");
aI("text=Coaching Log Reports;url=index.cfm?fuseaction=logReports;status=View/Create Coach Log Reports;");
aI("text=Search Coaching Logs;url=index.cfm?fuseaction=searchLogs;status=Search Coach Logs;");
}
with(milonic=new menuname("Observations")){
style=menuStyle;
overflow="scroll";
aI("text=New Observation;url=index.cfm?fuseaction=addObs;status=Enter a New Observation Form;");
aI("text=Observation Reports;url=index.cfm?fuseaction=reviewObs;status=View/Create Observation Reports;");
}
drawMenus();
</script>
<param copyright="JavaScript Menu by Milonic" value="http://www.milonic.com/"></param>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/clevops/test/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=/clevops/test/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript">
/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******
*/
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
with(menuStyle=new mm_style()){
subimage="/assest/images/next.gif";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="vertical";
aI("text=Home;url=index.cfm?fuseaction=home;status=Back To Home Page;");
aI("text=Coach Logs;showmenu=Logs;");
aI("text=Observations;showmenu=Observations;");
}
with(milonic=new menuname("Logs")){
style=menuStyle;
overflow="scroll";
aI("text=Create a New Log;url=index.cfm?fuseaction=addLogs;");
aI("text=Coaching Log Reports;url=index.cfm?fuseaction=logReports;");
aI("text=Search Coaching Logs;url=index.cfm?fuseaction=searchLogs;");
}
with(milonic=new menuname("Logs")){
style=menuStyle;
overflow="scroll";
aI("text=Create a New Log;url=index.cfm?fuseaction=addLogs;status=Create a New Coach Log;");
aI("text=Coaching Log Reports;url=index.cfm?fuseaction=logReports;status=View/Create Coach Log Reports;");
aI("text=Search Coaching Logs;url=index.cfm?fuseaction=searchLogs;status=Search Coach Logs;");
}
with(milonic=new menuname("Observations")){
style=menuStyle;
overflow="scroll";
aI("text=New Observation;url=index.cfm?fuseaction=addObs;status=Enter a New Observation Form;");
aI("text=Observation Reports;url=index.cfm?fuseaction=reviewObs;status=View/Create Observation Reports;");
}
drawMenus();
</script>
Poster: Ruth
Dated: Tuesday December 21 2004 - 1:24:05 GMT
I just created a page with your code, using arrow since I don't have next, and loads on the first load of the page in IE5.5, Netscape 7, Opera 7, and Firebird .07. Which browsers, OS and which version of the menu are you using?
Ruth
Poster: tootricky
Dated: Tuesday December 21 2004 - 6:21:46 GMT
I had the same problem, but I just use a preload javascript to load the graphics used in the menu.
Poster: tenchi
Dated: Tuesday December 21 2004 - 13:15:26 GMT
I'm using version 5.62 of the menu, and IE 6.0 on a windows 2000 machine. The page is located on an intranet site, and the problem seems to happen from multiple machines.
5.64 Fixed
Poster: tenchi
Dated: Tuesday December 21 2004 - 16:20:22 GMT
I just wanted to let you know I downloaded version 5.64 and my problem is solved!