Board Logo

font colours within same levels
peted - 8/1/2003 at 01:07 PM

i'd like to emulate a menu using tigra gold which has a different coloured font for each menu item i.e. 'a' is blue 'b' is red and so on. can this be done without using a graphic but text.

cheers pete

jimdy - 8/1/2003 at 01:32 PM

It probably can be done with wrappers.(ie: add html code to your item text)
Just an idea.

peted - 8/1/2003 at 02:11 PM

thanks jimdy. yep that works and was pretty stoopid of me not to figure out before i posted. i now have...

['<span style="color: #999999;">Contemporary</span>', null, null,

and now want to build in an onmouseover colour change to the text....

any suggestiuons welcome

p ],

jimdy - 8/1/2003 at 02:24 PM

this would probably work

<span style="color: #999999" onMouseOver="'#006600'" onMouseOut="'#000000'">A</span>

peted - 8/1/2003 at 03:33 PM

hi jimdy

nope. that doesn't help.

i'm not far off though i think. my mouseover problem stems from the fact that in the file menu_tpl.js my classes for the inner tag (i.e. font size color etc) is defined as 'inner' : 'm0inner',
for all mouseover states
and just 1 style in the css file;

(whereas the outer tag (the 'box') has 3 states
'outer' : ['m0mouto', 'm0movero', 'm0mdowno']
and 3 associated styles in the css file and works fine.

so far attempts to define my inner tag in the same way as the outer have ended in failure.

eg i would have thought

'inner' : ['m0innerout', 'm0innerover', 'm0innerdown']

and corresponding css styles would work... but no.

i can't belive that i can't effect the text on a mouseover - i just need to figure out the syntax


clare - 8/1/2003 at 10:16 PM

i have mastered the three states on the inner and outer tag using the remote css stylesheet - but for these to work i need to remove the 'inner html' which set the different font colors on the items at a 'local level'.

So Peted's original problem is back again
we need help to apply different formatting to items in the 'same' level.

i like the idea of using a remote style sheet as this keeps things simple for editing later. should i try to set a 'class' for each menu item?

Rock? Any other super mod suggestions on the best way to do it?

Back to forum: