Border on left and right

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
enobis
Beginner
Beginner
Posts: 2
Joined: Mon Aug 04, 2003 8:00 am

Border on left and right

Post by enobis »

Hello,

maybe i will buy the menu, but only if it's possible to fade out the left and right border! The top and bottom border must be there.

Is it possible to change this with attributes or have i to change the javascript?

Thanks for any posts

dennis
enobis
Beginner
Beginner
Posts: 2
Joined: Mon Aug 04, 2003 8:00 am

Post by enobis »

btw: the one who can programme the problem above, will be pay for his work, because it is very important!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I am unsure what you mean by "fade out the left and right border" but I am assuming you mean that you want a line on the top and a line on the bottom of a menu item (none on the left and right) when the mouse if over it. If this is the case, heres some help. Just a forewarning, you MUST be using the latest release candidate for this to work. At the time of this post, its RC4. Other RCs didn't work right with the classes.

In your webpage, declare in the head two styles, one for mouse over, one for mouse out. These two styles assume the menu backing is white. The reason you still want lines to render on all the menus, even when you're not hovering over them, is because the menus will shift because they're size will be changing because their borders are appearing and disappearing.

Code: Select all

<STYLE>
.topbottomLines{
	border-top: 1px #ff0000 solid;       /*red*/
	border-bottom: 1px #ff0000 solid;  /*red*/
	border-right: 1px white solid;         /*white*/
	border-left: 1px white solid;           /*white*/
}

.noLines{
	border: 1px #ffffff solid;                /*white*/
}</STYLE>
Now in your menu declarations, for menus you want to have this effect, make a style that will incorporate these classes.

Code: Select all

with(MyStyle=new mm_style()){
onbgcolor="#f8fcfd";
oncolor="#000000";
offbgcolor="#f0f1f3";
offcolor="#000000";
//bordercolor="#ff0000";       //comment this
//borderstyle="solid";            //   ''      ''
//separatorcolor="#8A867A";
//separatorpadding=2;
//separatorwidth="80%"
//separatoralign="center";
//onborder="";                     //comment this
//offborder="1px white solid";// same
//image="images/xpblank.gif";
onclass = "topbottomLines";     //Heres the lines class
offclass = "noLines";                //The no lines class
padding=2;
fontsize="10px";
fontstyle="normal";
fontweight="normal";
fontfamily="verdana, tahoma, arial";
subimage="images/arrow.gif";
}
Now set this style to the menus you make and it should work.
Hope this is what you were looking for.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Any word on if this worked at all? Cuz if you're willing to toss some money my way, feel free! :lol: Just kidding, my payment is knowing I am helping people learn about web design and helping them make better websites with this menu. :tearing up: Thats what I get out of this. :D
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply