For your consideration:
There was good reason why the <marquee> tag was depreciated that you might want to think about for your own site.
* The moving text on the screen was found to detract from the rest of the site, causing users to focus mainly on one area of the screen. This was found to have a detrimental effect to the site as a whole.
* Due to the way <marquee>s were animated, it caused very choppy movements across the screen. In extreme cases this was found to freeze the website and the browser and the flickering effect of the text as it moved was found to cause proplems for epileptic users on rare occasions.
* Marquees caused major problems for screen readers and other methods of making webpages easier to use for disabled users. There was no indication of where in the outline of the page the <marquee> should be, this caused screen readers to interpret all <marquee> tags as Headings.
I understand how you are trying to use the <marquee>, you're one of the rare cases who is using it for it's initial intended purpose; to act as a tickertape style news reel. There are some very effective methods of achieving the same effect in a valid way.
This is one example:
PHP Code:
<form name="marquee">
<input name="text" value=" Whatever text you type here will scroll">
</form>
<script type="text/javascript">
//<!--
/* Text box marquee by Dave Methvin, Windows Magazine
May be used/modified if credit line is retained */
var ScrollSpeed = 100;
var ScrollChars = 1;
function ScrollMarquee() {
window.setTimeout('ScrollMarquee()',ScrollSpeed);
var msg = document.marquee.text.value;
document.marquee.text.value = msg.substring(ScrollChars) + msg.substring(0,ScrollChars);
}
ScrollMarquee();
//-->
</script>
Bookmarks