Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes Dynamic marquee Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dynamic marquee" Watch "Dynamic marquee" New topic

Dynamic marquee

Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All,

I am trying to develop a small page , one of the page contents is marquee , the value of the marquee should be dynamic everytime ,

After finishing of the current value of the marquee , it should call ajax which call servlet to get the contains of next marquee value but it does not work ,

BTW : 1. The servlet works fine , problem seems to be around 'onfinish' property of marquee
2. looking for output like this


Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Now it works after I have added the following line

but the problem arises when the marquee content length varies , how to check the size of the next marquee content and adjust the marquee property 'width' accordingly

here is marquee html file after updating


Consider Paul's rocket mass heater.
subject: Dynamic marquee
Similar Threads
Problem with UTF-8 Character encoding
Upload file using servlet
Simple AJAX query what I'm missing?
Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server
why dwr is asynchronous ?what's wrong