View Full Version : Cross Browser marquee - CSS Font color

09-29-2003, 06:36 PM

i tried everything, but css colordefinitions for the scroller-text (normal and links) doesnt semm to work.

Anybody have a solution for this problem (xhtml 1.1 dtd).


Roy Sinclair
09-29-2003, 09:43 PM
If it's xhtml 1.1 then it should not have a marquee tag. Maybe you should be using a different Doctype.

09-30-2003, 10:12 AM
Thx fpr your answer, but the script "Cross Browser marquee" from dynamicdrive doesnt use the marquee, for ie its div and for ns layer.

And the problem is NOT, that the scrolling isnt working, the problem is that i can not format the text in the scroller with stylesheets......

09-30-2003, 10:23 AM
var marqueecontent='<nobr><span class="someClass">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm">click here.</a> Enjoy your stay!</span></nobr>'

09-30-2003, 10:35 AM
THX glenngv,

i tried to put the style EVERYWHERE, also direkt in the variable marqueecontent ...... it doesent work. I have defined a <body>-style with text-formating, and the Ticker-Text gets only this information, not the styles i wrote direkt into the Text or the nesting tags :-(

09-30-2003, 10:57 AM
can you show us how you modified it? only the related parts

09-30-2003, 11:20 AM
I modified nothing in the script, i tried only to put css-style to the text. example:
var marqueecontent='<nobr><span class="com_ticker">Thank you for visiting <a href="http://www.dynamicdrive.com" class="com_ticker">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm" class="com_ticker">click here.</a> Enjoy your stay!</span></nobr>'

as i said, i tried it with "class", "style" direkt, and in every place it can go (the 3 existing divīs)...

iīm getting crazy.....:(

09-30-2003, 11:29 AM
Works for me...

<style type="text/css">
.com_ticker {font:normal 12px Verdana; color:red}

maybe your style definition is wrong.

09-30-2003, 11:59 AM
Thx a lot, your style works!

this style doesnīt work:
.com_ticker {
font-size: 8pt;
font-weight: bold;
font-color: #ff0000;

and this one works:
.com_ticker {
font: normal 12px Verdana;
color: #ff0000;

very strange, normaly its only another way to define styles...

buggy browser stuff

THX a lot, again :thumbsup:

09-30-2003, 12:02 PM
your style is correct except for this one:

font-color: #ff0000;

it should only be color: #ff0000;

09-30-2003, 12:07 PM
ok, i see..... my fault ;)

Again, Thx a lot!!!!