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:14
Colors, colors, everywhere
Poster: tshelby32
Dated: Saturday September 6 2003 - 18:19:32 BST
In version 3, I had a submenu that had 5 links all with different on and off bg colors. Version 5 seems to work in IE but NOT for Netscape. Plus, on my imac, Safari reads the correct off bgcolor for some but not all, until the first mouseover, then it reads it fine..unless you refresh then the same thing happens.
Any ideas? I hope I didn't confuse everybody.
Thanks - Troy
PC - OS is WinXPPro
iMac - OS is OSx
All browsers are updated to the latest as of 9/6/03
Poster: Hergio
Dated: Sunday September 7 2003 - 4:31:01 BST
Do you have code or a URL? The little red note on the 'post a topic/reply' page ain't lying. If we could see your code we could find the bug/error or at least reproduce it to see if we can side-step it for you. Help us help you. hehe
Poster: John
Dated: Sunday September 7 2003 - 5:58:17 BST
Hergio wrote:
The little red note on the 'post a topic/reply' page ain't lying.
Unfortunately it's not red in all browsers, Dave.
However, it's still kind of obvious...
Quote:
** If you have a problem, posting a URL to your menu would be very helpful **
We can't help you if we can't see the code.
Poster: Hergio
Dated: Sunday September 7 2003 - 6:14:47 BST
Why isnt it red? Its got a style set to red.
Poster: tshelby32
Dated: Sunday September 7 2003 - 7:10:03 BST
Sorry...Here is an example.
http://home.comcast.net/~t.shelby/
It works correct in IE for PC's only.
Thanks!
Here is the code:
effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=10;
_subOffsetLeft=10;
with(style1=new mm_style()){
offcolor="#FFFFFF";
offbgcolor="#e86c00";
oncolor="#000000";
onbgcolor="#FFCC66";
bordercolor="#000000";
borderstyle="solid";
bordercolor="black";
fontsize=12;
fontstyle="normal";
fontweight="bold";
fontfamily="Helvetica, Arial";
padding=4;
high3dcolor="#66ffff";
low3dcolor="#000099";
pagecolor="#000000";
pagebgcolor="#FFCC66";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorcolor="#000000";
}
with(milonic=new menuname("mainmenu")){
top=110;
left=10;
borderwidth=1;
style=style1;
alwaysvisible=1;
alignment="left";
orientation="horizontal";
aI("text=Home;url=index.html;;status=Back to the home page;separatorsize=1")
aI("text=History;showmenu=history;;status=History;separatorsize=1")
aI("text=Contact Us;showmenu=about;;status=Contact Us;separatorsize=1")
aI("text=View Catalog;showmenu=contents;;status=Contents;separatorsize=1")
aI("text=Other Catalogs;showmenu=products;;status=Products;separatorsize=1")
}
with(milonic=new menuname("history")){
itemwidth=120;
borderwidth=1;
style=style1;
alignment="left";
aI("text=It started in...;url=.html;;separatorsize=1")
}
with(milonic=new menuname("about")){
itemwidth=120;
borderwidth=1;
style=style1;
alignment="left";
aI("text=How to contact us;url=about.html;;separatorsize=1")
}
with(milonic=new menuname("contents")){
itemwidth=100;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Contents;url=contents.html;;separatorsize=1")
}
with(milonic=new menuname("products")){
itemwidth=200;
borderwidth=1;
style=style1;
alignment="left";
aI("text=A;url=A.html;url= # oncolor=cfac7c;onbgcolor=cfac7c;offbgcolor=816714;;separatorsize=1")
aI("text=B;url=B.html;url= # oncolor=339966;onbgcolor=339966;offbgcolor=004c21;;separatorsize=1")
aI("text=C;url=C.html;url= # oncolor=de8186;onbgcolor=de8186;offbgcolor=771d11;;separatorsize=1")
aI("text=D;url=D.html;url= # oncolor=cccccc;onbgcolor=0000cc;offbgcolor=002989;;separatorsize=1")
aI("text=E;url=E.html;;separatorsize=1")
}
drawMenus();
Poster: Hergio
Dated: Monday September 8 2003 - 1:57:10 BST
Quote:
aI("text=A;url=A.html;url= # oncolor=cfac7c;onbgcolor=cfac7c;offbgcolor=816714;;separatorsize=1")
aI("text=B;url=B.html;url= # oncolor=339966;onbgcolor=339966;offbgcolor=004c21;;separatorsize=1")
aI("text=C;url=C.html;url= # oncolor=de8186;onbgcolor=de8186;offbgcolor=771d11;;separatorsize=1")
aI("text=D;url=D.html;url= # oncolor=cccccc;onbgcolor=0000cc;offbgcolor=002989;;separatorsize=1")
aI("text=B;url=B.html;url= # oncolor=339966;onbgcolor=339966;offbgcolor=004c21;;separatorsize=1")
aI("text=C;url=C.html;url= # oncolor=de8186;onbgcolor=de8186;offbgcolor=771d11;;separatorsize=1")
aI("text=D;url=D.html;url= # oncolor=cccccc;onbgcolor=0000cc;offbgcolor=002989;;separatorsize=1")
If you will notice here in your code, you have url specified TWICE in the declarations, thats a no-no. Secondly, your second url is set to # with no semi colon after it, so thats why its ignoring the stuff after the url= # oncolor=... because it can't understand it. Get the syntax shaped up and you'll be ok.
Poster: tshelby32
Dated: Monday September 8 2003 - 23:42:30 BST
Thank you. I used the converter and that is what it spit out. I fixed the code here:
aI("text=A;url=A.html;oncolor=cfac7c;onbgcolor=cfac7c;offbgcolor=816714;;separatorsize=1")
aI("text=B;url=B.html;oncolor=339966;onbgcolor=339966;offbgcolor=004c21;;separatorsize=1")
aI("text=C;url=C.html;oncolor=de8186;onbgcolor=de8186;offbgcolor=771d11;;separatorsize=1")
aI("text=D;url=D.html;oncolor=cccccc;onbgcolor=0000cc;offbgcolor=002989;;separatorsize=1")
aI("text=E;url=E.html;;separatorsize=1")
Although it still does not work in Safari, Netscape (PC and Mac), or IE (Mac)