Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:15

Remember State - {SOLVED}


Poster: steve.n
Dated: Saturday October 18 2008 - 17:01:31 BST

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

Re: Remember State


Poster: steve.n
Dated: Sunday October 19 2008 - 0:50:49 BST

After a good night sleep I woke up to see the obvious - solved :)

Re: Remember State


Poster: Ruth
Dated: Monday October 20 2008 - 4:36:57 BST

:) 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

Re: Remember State - {SOLVED}


Poster: steve.n
Dated: Monday October 20 2008 - 4:44:58 BST

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:
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 :)

Re: Remember State - {SOLVED}


Poster: Ruth
Dated: Monday October 20 2008 - 9:12:17 BST

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

Re: Remember State - {SOLVED}


Poster: Andy
Dated: Wednesday October 22 2008 - 12:18:22 BST

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