Log in

View Full Version : Awesome HTML Marquee Effects...



beckybex
04-21-2006, 01:04 AM
Though it may be unstable (not sure if it is), having a marquee tag inside a marquee (different behaviors) makes some really unique effects. :)

jscheuer1
04-21-2006, 05:33 AM
One can have quite a bit of fun with the marquee tag but, it is only minimally supported, when at all, in browsers other than IE. Also, most people find them irritating. I use them very occasionally for emphasis but, limit them to the type that roll in once and then stand still. Since other browsers do not support even this simple behavior attribute for a marquee tag, I disable the movement completely for all other browsers.

ddadmin
04-21-2006, 06:59 AM
I guess one quick way to make the marquee tag degrade well in other browsers is to add a overflow:scroll CSS attribute, so other browsers can at least manually scroll the contents inside:


<div style="overflow: scroll; height: 300px">
<marquee direction="up">
text here
</marquee>
</div>

But I think the marquee tag's days are numbered.

djr33
04-21-2006, 07:33 AM
Can't JS do it better anyway?

jscheuer1
04-21-2006, 07:39 AM
Well, JS is JS only but, it can do it cross browser but, it is more complex than a simple tag. Here is how I disable marquees for other browsers:


marquee{-moz-binding:none;display:block}

Works for FF and Opera. One or the other or both of these browsers will scroll a marquee tag but neither respect the behavior attributes. DD's idea is great if the marquee content will not fit in the allotted space.

mwinter
04-21-2006, 11:10 AM
Can't JS do it [scrolling content] better anyway?For John's idea of making content scroll once, a client-side script probably would be better if that effect was really wanted; at least one could be sure that it would degrade reliably. However, repeatedly scrolling content is a Bad Thing (TM), so considering what would be a better implementation isn't the best use of one's time.

Mike

beckybex
04-22-2006, 06:29 AM
Well this was something i was messing with a long time ago... i dont use the tag anymore