Forum Moderators: open

Message Too Old, No Replies

Problem with other Browsers except IE.

iframe and marquee

         

hazee

8:44 pm on May 20, 2005 (gmt 0)

10+ Year Member



Following is the code written inside table cell. It shows me the correct page size and properly formatted in IE but not with other browsers such as Mozilla. Any solution?

<Marquee direction="up" height=100% id=scroller onmouseout=this.start(); onmouseover=this.stop(); scrollAmount=1 scrollDelay=50 width=100%>
<IFRAME border=0 name=news src="news.asp" frameBorder=0 width=100% scrolling=no height=100% content=150></IFRAME>
</MARQUEE>

choster

9:41 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<marquee> is a proprietary tag. I'm pretty sure its behavior will only be predictable in Internet Explorer-- if any other browsers support it at all.

[edited by: choster at 9:42 pm (utc) on May 20, 2005]

hazee

9:42 pm on May 20, 2005 (gmt 0)

10+ Year Member



its working fine in IE ... but having problem with other browsers ..

tedster

4:01 am on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, that is what "proprietary" means - the marquee tag is not part of standard HTML, but only part of IE's "extension" of HTML.

Some other browsers are now supporting simple text scrolling with the <marquee> tag - but there's nowhere except IE that you can use marquee to scroll an iframe document. I never knew it could be done until you posted about it!

hazee

4:55 am on May 21, 2005 (gmt 0)

10+ Year Member



thanks,

So what do you prefer to use for scrolling news section?

Regards,

tedster

6:23 am on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, I don't use them - and all of my clients who have used scrollers of various kinds have now abandoned them because they found their visitors do not read the information. In fact, the last client hold-out abandoned scrolling text just last month after trying to use it to promote a rather spectacular sale item -- and getting next to no sales. Switching to a basic text link for the sale item got them a 10x increase in sales.

Eyetracker research has shown that people do not handle moving text on screen at all well. They just look elsewhere. And then, when people do try to read elsewhere on the page, the motion of the text scroller is a distraction that slows down reading speed.

However, if you want to use <marquee> then enclose plain text in there (not an iframe element) and style the marquee with css Microsoft Reference [msdn.microsoft.com].

Firefox and Opera will give that kind of implementation some support, although not the entire pile of modifications that MS has online - but I'm not sure about Safari and other Macintosh browsers.

dreamcatcher

9:57 am on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use a DHTML javascript scroller, which might work ok. Check out Dynamic Drive, I think they have some there.