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:37
Filters and using class
Poster: Ruth
Dated: Thursday March 18 2004 - 3:37:14 GMT
I'm wondering if it's possible to use the on/off class within the filter definition. For example:
Code:
with(subs=new mm_style()){
onclass="main2On";
offclass="mainOff";
padding=3;
overfilter="GradientWipe(WipeStyle=1,motion='forward',duration=0.4);
Shadow(color='#202020', Direction=135, Strength=4)";
outfilter="GradientWipe(WipeStyle=1,motion='reverse',duration=0.4);
Shadow(color='#202020', Direction=135, Strength=4)";
}
In each page the colors would be defined in the head, ie onclass="main2On";
offclass="mainOff";
padding=3;
overfilter="GradientWipe(WipeStyle=1,motion='forward',duration=0.4);
Shadow(color='#202020', Direction=135, Strength=4)";
outfilter="GradientWipe(WipeStyle=1,motion='reverse',duration=0.4);
Shadow(color='#202020', Direction=135, Strength=4)";
}
Code:
<style>.mainOff {
background-color: white;
color: black;
border: 1px white solid; }
.mainOn {
background-color:black;
color:white;
border: 1px #ffffee ridge; }</style>
They would be different on each page. So, in order to get the shadow effect to work while using this, it really needs to be able to be delcared in the styles along with all the other colors and just called into the menu code. Something like this.background-color: white;
color: black;
border: 1px white solid; }
.mainOn {
background-color:black;
color:white;
border: 1px #ffffee ridge; }</style>
Code:
overfilter="GradientWipe(WipeStyle=etc, etc,);Shadow(color='mainOff, Direction=135, Strength=4)";
outfilter="GradientWipe(WipeStyle=etc, etc.);Shadow(color='mainOn', Direction=135, Strength=4)";
Is that possible? I did try that, it did some weird things with changing the direction, making it much wider.
outfilter="GradientWipe(WipeStyle=etc, etc.);Shadow(color='mainOn', Direction=135, Strength=4)";
Ruth
Poster: Maz
Dated: Friday March 19 2004 - 21:57:25 GMT
Hi Ruth,
Not sure which URL to look at?
I had a look at the www url and entered, everytime I mouse over the menu the whole page goes white and the music stops.
maz
Poster: Ruth
Dated: Friday March 19 2004 - 22:17:36 GMT
::banging head:: against the wall. I forgot to put the url.
LINK REMOVED
Poster: Maz
Dated: Friday March 19 2004 - 23:37:01 GMT
I did reply via email, also in the new IE problem post.
Darn, just when I thought everything was good something is sure to get by me.
maz
Poster: Ruth
Dated: Saturday March 20 2004 - 1:31:49 GMT
I replied back. I believe the problem is caused by the padding. I just noticed that my padding was not declared as the same value in all places, it was 2 in some and 3 in another. I took it out completely, so try the last posted link and see if it's gone.
Ruth