View Full Version : Cross Browser marquee font control
Playfla
07-06-2006, 04:32 AM
1) Script Title: Cross Browser marquee
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
3) Describe problem:
I am having problems with the end of the message cutting off when the marquee is in a div
<div style="font-family: sans-serif; font-size: 12px;">
What is the best way to specify the font?
Thanks
Playfla
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?
For a start, don't specify a font-size in pixels.
I think it's simply a case of making the DIV big enough.
Playfla
07-10-2006, 07:55 PM
Thanks
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>')
http://www.thiswaytothe.net/tropical/
see it working here and also the cut and paste code for the external js file
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.