View Full Version : Modify Ajax XML Ticker to Update Automatically

01-04-2010, 02:06 AM
1) Script Title: Ajax XML Ticker (txt file source)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

3) Describe problem: I would like to modify the script so that it automatically updates (i.e., rereads the xml text file) after scrolling through each of the messages in the messages array once. In this way if the text file is constantly changing, the ticker is always showing the latest information and never repeating any information. I have tried to make this change myself, but I am having trouble. It seems to me you need to check for this.pointer == 0 after the following statement in rotatemsg: this.pointer=(this.pointer<this.messages.length-1)? this.pointer+1 : 0 and then call ajax_ticker all over again, but it's not working for me.