Results 1 to 7 of 7

Thread: Awesome HTML Marquee Effects...

  1. #1
    Join Date
    Apr 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Awesome HTML Marquee Effects...

    Though it may be unstable (not sure if it is), having a marquee tag inside a marquee (different behaviors) makes some really unique effects.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    <div style="overflow: scroll; height: 300px">
    <marquee direction="up">
    text here
    </marquee>
    </div>
    But I think the marquee tag's days are numbered.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Can't JS do it better anyway?

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    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

  7. #7
    Join Date
    Apr 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well this was something i was messing with a long time ago... i dont use the tag anymore

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •