• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

not able to scroll message in IE

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic