Problems with onfontcolor or offfontcolor

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Problems with onfontcolor or offfontcolor

Post by Martin »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

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

So you should use:

Code: Select all

,"Menu Item","link.html code here;",,,1
For no show-menu= and

Code: Select all

,"Menu Item","show-menu=menu","# code here;",,1
-- Andy
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

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...
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I've just tried.

Code: Select all

,"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.
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

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 ;)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

ar that would do it.

Can you not escape the " characters with \ like this

Code: Select all

,\"NEWS\",\"index.cfm? offfontcolor=000000;onfontcolor=CC0000;\",,\"Bitte wählen Sie...\",0
Cheers
Andy
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

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
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

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
Post Reply