Filters and using class

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Filters and using class

Post by Ruth »

I'm wondering if it's possible to use the on/off class within the filter definition. For example:

Code: Select all

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

Code: Select all

<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.

Code: Select all

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.

Ruth
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

::banging head:: against the wall. I forgot to put the url.

LINK REMOVED
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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 :?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think I answered my own question of filters and class, finally realized that they are an ie thing, so it's not the menu's on/offclass that would be used if any could be used at all.

Ruth
Post Reply