aspose file tools*
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
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
Author

not able to scroll message in IE

prakash ke
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
prakash ke
Greenhorn

Joined: Apr 20, 2011
Posts: 7
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to scroll message in IE