www.webdeveloper.com
Results 1 to 14 of 14

Thread: marquee and Firefox

  1. #1
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850

    marquee and Firefox

    Hi

    sorry for this is not about css but it is here where I usually am and this is where I at least think here are the most FF veteran users

    So my question is if the tag marquee is very poorly compatible with Firefox or something, especially using the attribute "Direction up".

    I wouldnīt like using the javascript for this simple task but I guess I have no other alternative if it looks like this fecked up in FF.


    p.s

    no, where I attend to use this feature isnīt at all annoying as you think just cus I mentioned "marquee"

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,252
    The marquee tag is likely to have many compatibility problems, because it is not part of the HTML specification. I believe it was an IE "invention", and any support FF or other browsers give is at best fortuitous if you want to use it.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273
    I just tried this and it worked in FF.
    Code:
    <marquee direction="up">hello</marquee>
    You do know that it's not valid though, yeah?

  4. #4
    Join Date
    May 2005
    Posts
    2,040
    Quotes from elsewhere:

    For a long time, only Internet Explorer supported this element. Although Netscape/Mozilla now supports it, it is not and likely will never be in the standards, so its use is not recommended.

    Siddan, I think this is the third or fourth time you've been tripped up by IE. Just read the standards from the w3c and you won't have that problem.

  5. #5
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850
    Bon Rouge.. hehe and try to add a background to the div which wrapps the marquee... or even add a border, then you see
    ---
    aiite drhoward, then I guess I just have to use javascript then

  6. #6
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Well as long as you're at it don't forget <blink>.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  7. #7
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    You shouldn't use <marquee> for accessibility reasons.

    http://www.w3.org/TR/WAI-WEBCONTENT/#q33
    http://www.google.com/search?q=accessibility+marquee

    If you must have scrolling text, use JavaScript and provide a method to stop the scrolling.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

    Check out my blog.

  8. #8
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850
    Quote Originally Posted by ray326
    Well as long as you're at it don't forget <blink>.
    no, that is annoying. Yes I know you were being ironic there.

    Just for your information I wanted to use this upwards scrolling text for a special poem that is a bit long but not too long cus in this way it would be much more.... how you say,,, poetical. It is only for this poem only which appears only one single time on one single page.

  9. #9
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Not having used it I didn't know it could do anything but a horizontal, single line scroll. I'd recommend you follow Kravvitz's advice, though.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  10. #10
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850
    I have found a pretty good javascript, so with this workaround it now works in FF

  11. #11
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760

  12. #12
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850
    well you know, there is a gray zone too, not just black and white.
    Not easy being misguided. I can also make a page with badly chosen colors and combinations and tell everyone not to use colors on their site .... cus it is damn ugly and irritating for the eyes

  13. #13
    Join Date
    Nov 2005
    Posts
    1

    Marquee or not marquee, that's the ...

    First, for your poem try :
    <marquee id="poem" behavior='scroll' direction='up' scrollamount='1' scrolldelay='20' onmouseover='this.stop()' onmouseout='this.start()'>
    all your poem text with all webstandards compliant code you want....
    </marquee>

    It works like charm on Firefox, Netscape (in IE mode), IE of course and Opera (except for the stop command)
    You can also shape it using CSS i.e:
    #poem{
    width:100px;
    height:200px;
    background-color:#cccccc;
    }

    Second: About Web Standards
    Many techies complain about marquee tag based in two asumptions that may be as valid for marquee as for the javascript solutions they recommend:

    1. It's an IE tag, only supported by IE. Time proved to have some utility because now it's also supported by Firefox, Mozilla, Netscape (in IE mode), and Opera (except for the stop/start commands).

    2. Marquee is annoying and distracting. This has more to do with design concepts that with the effect. Speaking about annoying, I can think of many many many of flash animations and flash sites all arround that are less informative, more annoying and distracting that a news marquee. From this point of view, we should drop marquee, blink and flash at once!

    Don't get me wrong, I love web standards -and hate IE in consequence-. I stress out my designers team to make web standars compliant sites for our clients as long as possible, and I really do prefer to avoid marquees, but in some circumstances, a marquee is the most accurate way to present information, from the visitor's point of view.

    The problem with javascript solutions (and belive me, I have tryed most of them) is that they take a lot of time and tweaking to make them work the way you want. The worst thing about most of them is that they require that your content be placed inside the code itself, like in vars or object declarations, so if your visitors happen to have javascript disabled they won't be able to see your content at all, not to mention search engines that will ignore your javascript coded content.
    BTW there is one script that really liked me because keeps marqueed texts inside the natural html flow of your page, althoug it have problems with netscape and opera:

    http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm


    Anyway, what's the point of having your page beautifully validated if:
    1. Search engine's robots will ignore your marqueed content
    2. You'll have to integrate your content inside vars of javascripts that require to start with a body's onload command, that may crash with other more important javascripts on the page.
    3. Final effect won't be visible in all web browsers after all
    4. It would eat minutes, hours or days of your valuable time trying to make excesive lines of code to fit your needs or to solve point 2...

    when you simply can write <marquee ... ?
    Last edited by digitart; 11-07-2005 at 02:55 AM.

  14. #14
    Join Date
    Jan 2004
    Location
    Sweden
    Posts
    850
    Hey.... that was written so superbly I could make That as a poem!,, hehe
    Really, that canīt be so difficult to understand, can it? Almost everyone sees things in black and white.

    I will try that example of yours, but that is pretty the standard one isnīt it?
    Ithe problem was when I wrapped the marquee inside a div which the div had a background picture, it all got messed up viewin in FF

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles