Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to scroll message in IE

 
prakash ke
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
prakash ke
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
man that mark up is full of bad.

It contains font tags which are depreciated and the marquess tag is a non standard tag: https://developer.mozilla.org/en/HTML/Element/marquee

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic