fontsize in menu item

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tom2
Beginner
Beginner
Posts: 5
Joined: Fri Jun 06, 2003 4:17 pm

fontsize in menu item

Post by tom2 »

Hi,

I ran into a problem where offbgcolor was followed by a fontsize.

I fixed the code to move the fontsize ahead of the offbgcolor item

aI("text=`Players`;rawcss=padding:0px 3px 0px 3px;;url="+"test.html"+
";oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;"+";fontsize:8px;");

I moved the fontsize code to the front, and the problem went away.

aI("text=`Players`;rawcss=padding:0px 3px 0px 3px;;url="+"test.html"+
";fontsize:8px;oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;");

Thanks.

Tom.
tom2
Beginner
Beginner
Posts: 5
Joined: Fri Jun 06, 2003 4:17 pm

Additional Info

Post by tom2 »

Forgot the error message.

On IE 6.0, the error was not fatal, but the error indicated an invalid arguement .

on this line in mmenudom.js version 5.66

if(_I[7])_gs.background=_I[7];
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Tom,
Just out of curiosity why does the first aI you posted have a "+" before the fontsize? Have you tried

Code: Select all

aI("text=`Players`;rawcss=padding:0px 3px 0px 3px;;url="+"test.html"+ 
";oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;fontsize=8px;"); 
eliminating that "+" before the fontsize? I don't think that needs to be there, or if you're having it as part of the rawcss, then I think it would need to be before the listed color. Also, you seem to have an extra semi-colon after the 3px in the padding section.

Ruth
tom2
Beginner
Beginner
Posts: 5
Joined: Fri Jun 06, 2003 4:17 pm

fontsize question

Post by tom2 »

Hi Ruth,

Since the input to aI is just a string, the plus signs concatenate
the individual strings together. The sections are generated dynamically.

As for the extra semicolon, is that a problem?

Tom.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It might be in some cases. However, I tested the following and it worked in Netscape, Opera, IE5.5 and Firebird .07 [which is a real old Firefox] I think you might have read my response before I edited it and made a correction from a colon to an = sign. The string should be

Code: Select all

aI("text=`Players`;rawcss=padding:0px 3px 0px 3px;;url="+"test.html"+ 
";oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;fontsize=8px;"); 
Note that after fontsize it is a = not a : I think it was the colon that was causing it not to register since the program expects an = i.e. oncolor=, offcolor=,fontweight=,fontfamily=, and so on. I know you put in : in the rawcss but only after the item that follows the = rawcss=padding:

I didn't notice the : initially, sorry about that.

Ruth
tom2
Beginner
Beginner
Posts: 5
Joined: Fri Jun 06, 2003 4:17 pm

Nice Catch

Post by tom2 »

Hi Ruth,

Nice catch. I was out to lunch on that one.

THanks.

Tom.
Post Reply