permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android 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


It is sorta covered in the JavaRanch Style Guide.
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