View Full Version : Cross Browser marquee font control

07-06-2006, 04:32 AM
1) Script Title: Cross Browser marquee


3) Describe problem:

I am having problems with the end of the message cutting off when the marquee is in a div


What is the best way to specify the font?


07-08-2006, 01:42 PM
Found that if I omit the font-family property from the container (<p <div and <span) then all is well.

If I specify "system" font it works fine in IE and FF on Windows. Use any other font family and a long message is truncated.

Can anyone else duplicate this or is it just me?

07-08-2006, 01:48 PM
For a start, don't specify a font-size in pixels.

I think it's simply a case of making the DIV big enough.

07-10-2006, 07:55 PM

That really makes a difference.

I want to pass this one along as a cut and paste and wont have control over what is done around it. I will mention that restriction.

The scroller content length will vary since it is the output from the NWS Tropical Weather Update. Sometimes its gets wordy. I looked in some of the other threads on this but could not locate the one with the fix. I tried playing with my best guess but to no effect. Is this it?

document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')

see it working here and also the cut and paste code for the external js file