Now that I got the menu working...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
code-frog
Super Advanced
Super Advanced
Posts: 35
Joined: Sun Apr 25, 2004 9:47 pm
Location: Boise, Idaho
Contact:

Now that I got the menu working...

Post by code-frog »

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
Windows XP SP1a all updates, Toshiba Satellite Pro 1955-S805; 1 Gig Ram; 2.53 Gig Processor
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Ruth
User avatar
code-frog
Super Advanced
Super Advanced
Posts: 35
Joined: Sun Apr 25, 2004 9:47 pm
Location: Boise, Idaho
Contact:

Post by code-frog »

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

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

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)";
}
Windows XP SP1a all updates, Toshiba Satellite Pro 1955-S805; 1 Gig Ram; 2.53 Gig Processor
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Rex,

In your style code:

Code: Select all

pagecolor="black"; 
pagebgcolor="#FFFFFF"; 
Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply