tags:

views:

2263

answers:

8

My <marquee> tag is working perfectly in ie6 and ie7, but in ie8 it only shows first item.

How can I fix this?

Thanks in advance.

+2  A: 

From what I understand Marquee is deprecated, and IE8 might be the version of IE that Microsoft decided to completely leave out support for that tag. Even if you do find a way to get it to work, I would suggest using another method to get the text to scroll (if that is what is needed) becuase you will probably have the same problem in the next version if IE.

EDIT: You can try java script...after a quick search I found this site that looks like it will generate the code for you. Also, since it's javascript it should now also work on Firefox, Chrome, etc. http://rumkin.com/tools/marquee/

AGoodDisplayName
A: 

do you have the marquee set to slide instead of scroll? or a very long scrolldelay?

Colin Pickard
behavior = scroll
+11  A: 

As much as it pains me to link this: http://remysharp.com/demo/marquee.html

A jquery based marquee which will work across browsers.

Erik
MY EYES!!!!!!!!!!!
Pierreten
I stabbed my computer!
mark123
I up-voted the answer, since it answers the question, but **ugh**...it was an ethical *nightmare* to do so...freaking marquee...and I used to *like* Remy Sharp, too... =(
David Thomas
Im sorry, Im not familliar with these check and voting, I am looking for accepting question :(
Yeah, its pretty horrible, but the OP is tasked with maintaining a client's site from the sounds of it. However the `no javascript` condition makes it impossible.
Erik
There's the potential for a CSS3 solution, in my answer (somewhere around here), that, coupled with a `<noscript>` fall-back might allow this to work. It might even be possible to this option, with css3 and then fall-back to the traditional marquee for older browsers. Certainly if conditional comments are used to identify older versions of IE.
David Thomas
Are you sure you it's not too late to set the font-family to "Comic Sans" as well? That will make some people's heads totally explode: http://blog.howdesign.com/2010/01/04/DesignerGang.aspx
Robusto
+12  A: 

The marquee element is deprecated. The W3C recommends using <em> and <strong> as alternatives. If you need to mimic the behavior of the marquee, JavaScript has tools for doing that. This discussion has a working JavaScript example.

David
"The marquee element is deprecated."I know
Up-voted because a) I *loathe* the marquee 'feature,' and because b) obscuring/hiding/moving content with js means it's still available (non-obscured/hidden/moving) *without* js for accessibility.
David Thomas
@jasmine, there's a *reason* it's deprecated. It's a hideous non-feature that actively hinders successful UI.
David Thomas
I know, But there is a site and site owner want to every thing working perfect without jquery in ie6-7-8
Then your stuck if you can't use javascript, there is no equivelent tag that replaces marquee. How will the owner know your using javascript?
AGoodDisplayName
A: 

Can you share the URL to this site?

Shaun
now developed locally
+3  A: 

As much as I loathe the element and the vast majority of its use-cases, CSS3 seems to have brought it back:

David Thomas
Thanks alot rice ;)
You're welcome; and now I'm going to go and wash my hands, eyes and mind in bleach... =p
David Thomas
It might seem like a good solution, but you'll never get this to work in any currently available version of IE. It uses CSS3 animations that are only available with the -webkit prefix.
derekerdmann
@derekerdmann, yeah, I know. I was posting for the purpose of providing extra information (since I think the accepted answer had been accepted prior to my posting this one). I'd've posted as a comment to that, or another, answer but I expected it to be unwieldy as a comment. And seriously? In this one case: *lucky, lucky IE (and non-Webkit) users* ... =b
David Thomas
A: 

the solution:

http://www.dynamicdrive.com/forums/showthread.php?t=48741

My problem is solved!!

...it's javascript.
badp
and really terrible js at that
meandmycode
document.layers? NS4 called it wants it's JavaScript "1.2" back.
Craig
A: 

I really feel the scroller mechanism is pre-Web 2.0. If your client wants it, well you may not have a lot of options but I would really try and do some kind of demo to highlight that there are better ways and it would not cause any instability to the site if implemented correctly.

I know many clients are cautious, but in my experience if you can show them a better alternative which is as stable or even more stable and at a low cost (time and money) then they are willing to accept the new way more often than not.

Marthinus