Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:55

Now that I got the menu working...


Poster: code-frog
Dated: Friday January 28 2005 - 6:31:21 GMT

Whenever I click on a menu item to navigate from the home page that menu text turns black. Is there some type of "Clicked" property that I am not aware of?

To view:

http://crookham.code-frog-development.com

Click on "The Company"->"history" and you'll see what I mean.

- Rex


Poster: Ruth
Dated: Friday January 28 2005 - 7:32:13 GMT

It's because in the subMenuStyle you've got the onbgcolor set to #435607, so when you mouseover you get that dark color.

Ruth


Poster: code-frog
Dated: Friday January 28 2005 - 16:28:28 GMT

Right when I mouse over darken the rect-region. When I move away it should return the menu to it's resting state.

onbgcolor="#435607"; //- Change it to dark green rect-region when mouse is ON.
oncolor="#ffffff"; //- Change the text to white.
offbgcolor="#FFFFFF"; //- Change the rect-region to white.
offcolor="#7F0400"; //- Change the text to red.
bordercolor="#FFFFFF"; //- Set the border to white.
borderstyle="solid";
borderwidth=1;
separatorcolor="#FFFFFF"; //- Set the seperator to white.

What am I missing?

Code:
If cursorOver then
   background = green
   textcolor = white
else
   background = white
   textcolore = red


That's my understanding of what I've told it to do... {I'm learning, slowly... What's next in schooling?} :idea:

Here's the complete property code for clarity:

Code:
with(menuStyle=new mm_style()){
onbgcolor="#FFFFFF";
oncolor="#7F0400";
offbgcolor="#FFFFFF";
offcolor="#7F0400";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
separatorcolor="#FFFFFF";
separatorsize="1";
padding=5;
fontsize="110%";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#FFFFFF";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#FFFFFF', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

with(subMenuStyle=new mm_style()){
onbgcolor="#435607";
oncolor="#ffffff";
offbgcolor="#FFFFFF";
offcolor="#7F0400";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
separatorcolor="#FFFFFF";
separatorsize="1";
padding=3;
fontsize="100%";
fontstyle="normal";
//fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#FFFFFF";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#FFFFFF', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


Poster: Ruth
Dated: Friday January 28 2005 - 18:06:29 GMT

I'm not seeing the behaviour you are mentioning. When I mouseover history it turns black, when I click it and go to that page, and mouseover Company, History is back to being white, until I mouseover it again. I'm on win98se IE5.5. What is your browser and OS. I'm sorry, but without seeing the behaviour I can't figure what's going on. As a suggestion, do you have any kind of css, or functions that might cause such behaviour?

Ruth


Poster: kevin3442
Dated: Friday January 28 2005 - 18:30:21 GMT

Hi Rex,

In your style code:
Code:
pagecolor="black";
pagebgcolor="#FFFFFF";

Kevin


Poster: Ruth
Dated: Friday January 28 2005 - 20:31:25 GMT

From your previous post

code-frog wrote:
See you guys the next time I need help catching myself being stupid
Well, make sure you request me so having not paid attention to the word 'text' in your 1st post, I can give you stupid reply which has nothing to do with the problem! :oops: :lol:

Ruth