subImage Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tenchi
Beginner
Beginner
Posts: 3
Joined: Tue Dec 21, 2004 12:01 am

subImage Problem

Post by tenchi »

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: Select all

<script type="text/javascript" src="/clevops/test/milonic_src.js"></script>	
<param copyright="JavaScript Menu by Milonic" value="http://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://milonic.com/ for more information.
See http://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>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
tootricky
Advanced
Advanced
Posts: 28
Joined: Tue Dec 07, 2004 4:07 pm

Post by tootricky »

I had the same problem, but I just use a preload javascript to load the graphics used in the menu.
tenchi
Beginner
Beginner
Posts: 3
Joined: Tue Dec 21, 2004 12:01 am

Post by tenchi »

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.
tenchi
Beginner
Beginner
Posts: 3
Joined: Tue Dec 21, 2004 12:01 am

5.64 Fixed

Post by tenchi »

I just wanted to let you know I downloaded version 5.64 and my problem is solved!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Thanks. Glad to hear you got it going.
John
Post Reply