View Full Version : Ajaxticker rotation timeout

07-13-2009, 01:09 PM
I'm new to the JavaScript language. My company is running the Ajax ticker on there website which rotates a short series of pictures. I would like to have the ticker rotate through the pictures once, then stop on the last picture. I haven't a clue on how to make this happen. If I'm understanding the script right, there is a timeout delay function in the script.

Can anyone help me with the proper code to make this happen? Any suggestions would be helpful. I included the script as an attachment for reference.

07-13-2009, 02:04 PM
var instanceOfTicker=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
else{ //else, construct item, show and rotate it!
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
if (this.pointer<this.messages.length) setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container periodically

07-13-2009, 02:23 PM
Thank you very much.

03-19-2010, 11:12 PM
Is there a way to make each message individualy selectable ie 1 2 3 4, ive seen scripts that do this but theyre not ajax based.