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.
fontsize in menu item
Additional Info
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];
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];
Hi Tom,
Just out of curiosity why does the first aI you posted have a "+" before the fontsize? Have you tried 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
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;");
Ruth
fontsize question
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.
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.
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
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
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;");
I didn't notice the : initially, sorry about that.
Ruth
Nice Catch
Hi Ruth,
Nice catch. I was out to lunch on that one.
THanks.
Tom.
Nice catch. I was out to lunch on that one.
THanks.
Tom.