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:59
fontsize in menu item
Poster: tom2
Dated: Wednesday December 29 2004 - 17:00:30 GMT
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.
Additional Info
Poster: tom2
Dated: Wednesday December 29 2004 - 17:05:06 GMT
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];
Poster: Ruth
Dated: Wednesday December 29 2004 - 17:14:44 GMT
Hi Tom,
Just out of curiosity why does the first aI you posted have a "+" before the fontsize? Have you tried
Code:
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.
";oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;fontsize=8px;");
Ruth
fontsize question
Poster: tom2
Dated: Wednesday December 29 2004 - 19:01:59 GMT
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.
Poster: Ruth
Dated: Wednesday December 29 2004 - 21:40:03 GMT
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:
aI("text=`Players`;rawcss=padding:0px 3px 0px 3px;;url="+"test.html"+
";oncolor=#00285d;offcolor=#ffffff;onbgcolor=#ffffff;offbgcolor=#00285d;fontsize=8px;");
";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
Nice Catch
Poster: tom2
Dated: Thursday December 30 2004 - 3:12:25 GMT
Hi Ruth,
Nice catch. I was out to lunch on that one.
THanks.
Tom.