Remember State - {SOLVED}

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
steve.n
Advanced
Advanced
Posts: 20
Joined: Sat Aug 30, 2008 2:25 am

Remember State - {SOLVED}

Post by steve.n »

Hi Everyone,

I'm using onclass and offclass to style my menu in css but now the remember state doesn't function. Is there a solution?

Thanks. Steve
steve.n
Advanced
Advanced
Posts: 20
Joined: Sat Aug 30, 2008 2:25 am

Re: Remember State

Post by steve.n »

After a good night sleep I woke up to see the obvious - solved :)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Remember State

Post by Ruth »

:) Could you post your 'obvious' solution for any who do not see it? I had actually just posted this to Milonic since I am one who is not seeing whatever you saw :oops: It would be really appreciated.

Ruth
steve.n
Advanced
Advanced
Posts: 20
Joined: Sat Aug 30, 2008 2:25 am

Re: Remember State - {SOLVED}

Post by steve.n »

Sorry Ruth - I have been so stressed designing a new site for a client I'm really not thinking straight anymore.

The solution was to include the remember state code in the data.js file as below

Code: Select all

with(Headmenu=new mm_style()){
offclass="menuOff";
onclass="menuOn";
pagebgcolor="#8dc63f";
pagecolor="#ffffff";
}
This may or may not be the correct solution but it does work :)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Remember State - {SOLVED}

Post by Ruth »

Hi,

You're talking about the page properties? Sorry, but I'm as frazzled as you! Anyway, if you are, just for your info, since you seem to be using css as noted with the off and on class, there is also a pageclass and a pageonclass available.

As far as I know you're solution is fine. Since I'm not a programmer and my solutions come from 'twiddling' until I find one, whatever works is fine as far as I'm concerned :lol:

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Remember State - {SOLVED}

Post by Andy »

Ruth wrote:Since I'm not a programmer and my solutions come from 'twiddling' until I find one
Hey, that's what most of us so called programmers do, Ruth - It's called hacking :D

But it gets the job done
Post Reply