This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes not able to scroll message in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "not able to scroll message in IE" Watch "not able to scroll message in IE" New topic

not able to scroll message in IE

prakash ke

Joined: Apr 20, 2011
Posts: 7
I am calling a loadScroll() function which is there in myscroll.js from a jsp. I want to scroll a message. It's not working for Internet Explorer.
The js file contains

function loadScroll(sessionid)
document.getElementById("myhome-scroll").innerHTML= "<table align='center'><tr><td width='160%' align='center'><marquee behavior='scroll' direction='left' onmouseover='this.stop();' onmouseout='this.start();' scrollamount='2'><font color='#ff0000'><s
trong>I am being scrolled here.</strong></font></marquee></td></tr></table>";

If i remove marquee tag it's getting displayed.

But this is working fine with firefox.

Can anyone help me out please?
Rob Spoor

Joined: Oct 27, 2005
Posts: 20128

Welcome to the Ranch!

There is a big difference between Java and JavaScript. The latter has its own forum (well, shared with HTML), which is where I will move this thread. And you should be aware that marquee is, together with blink, one of the most evil elements there is. Neither are part of the official HTML specification, so browsers are not required to support them.

How To Ask Questions How To Answer Questions
prakash ke

Joined: Apr 20, 2011
Posts: 7
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
man that mark up is full of bad.

It contains font tags which are depreciated and the marquess tag is a non standard tag:

I agree. Here's the link:
subject: not able to scroll message in IE
It's not a secret anymore!