Colors, colors, everywhere

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tshelby32
Beginner
Beginner
Posts: 5
Joined: Wed Oct 09, 2002 2:36 am

Colors, colors, everywhere

Post by tshelby32 »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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 :)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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...
** 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.
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Why isnt it red? Its got a style set to red.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
tshelby32
Beginner
Beginner
Posts: 5
Joined: Wed Oct 09, 2002 2:36 am

Post by tshelby32 »

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();
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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")
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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
tshelby32
Beginner
Beginner
Posts: 5
Joined: Wed Oct 09, 2002 2:36 am

Post by tshelby32 »

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) :?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try a # in front of all your color descriptions...

Code: Select all

aI("text=A;url=A.html;oncolor=#cfac7c;onbgcolor=#cfac7c;offbgcolor=#816714;;separatorsize=1")
John
Post Reply