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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:32

Problems with onfontcolor or offfontcolor


Poster: Martin
Dated: Wednesday July 10 2002 - 16:51:10 BST

I tried to change some colors like described in the multicolor sample.

I added '# offfontcolor=000000;onfontcolor=333333' in the position of the "alt-URL"-Entry. It does not work. I checked everything, but I can't find any error.

Any Idea?

Thanks

Martin


Poster: Andy
Dated: Wednesday July 10 2002 - 17:03:08 BST

Hi,

The alt_url slot is only used if you have a show-menu in the URL slot.

So you should use:

Code:
,"Menu Item","link.html code here;",,,1


For no show-menu= and

Code:
,"Menu Item","show-menu=menu","# code here;",,1


-- Andy


Poster: Martin
Dated: Wednesday July 10 2002 - 17:18:44 BST

Thanks Andy,

But it does not work. My code:

'&#149;&nbsp;<b>NEWS</b>','index.cfm?111010100000 offfontcolor=000000;onfontcolor=CC0000;',,'Bitte wählen Sie...',0,<...Next entry...>

Funny...


Poster: Andy
Dated: Wednesday July 10 2002 - 17:26:33 BST

I've just tried.

Code:
,"NEWS","index.cfm? offfontcolor=000000;onfontcolor=CC0000;",,"Bitte wählen Sie...",0


and it works on version 3.4.12. The above parameters were added after version 3.3.19 so if you are using that version it could be the problem.

Cheers
Andy.


Poster: Martin
Dated: Wednesday July 10 2002 - 17:39:04 BST

Hi Andy,

I use the latest version. So, i compared the code again. I can't find any differences. The only difference is this: I have to use the '-signs instead of the "-signs to avoid conflicts with my ColdFusion Code.

I you like, you can visit the prototype here:

http://projectscf.merlinconsulting.ch/sgp

Thank you ;)


Poster: Andy
Dated: Wednesday July 10 2002 - 17:42:29 BST

ar that would do it.

Can you not escape the " characters with \ like this

Code:
,\"NEWS\",\"index.cfm? offfontcolor=000000;onfontcolor=CC0000;\",,\"Bitte wählen Sie...\",0


Cheers
Andy


Poster: Martin
Dated: Wednesday July 10 2002 - 18:09:25 BST

I changed the code. I replaced the '-signs with the ColdFusion Chr(34) function. Everthing looks fine, but the color does not change :cry:


http://projectscf.merlinconsulting.ch/sgp


Cheers

Martin


Poster: Martin
Dated: Wednesday July 17 2002 - 17:58:12 BST

Hi Andy,

The problem is still not solved. For testing purposes, i add "offbackcolor" and "onbackcolor". After this change, it worked out!

I removed "onbackcolor" afterwards. With now 3 parameter, it works sometimes and generates an error message "invalid argument" .

Any Idea?

Cheers