/// ***************************** /// * RadRotator * /// ***************************** function RadRotator(id) { this.ID = id; this.Container = ''; this.InnerContainer = ''; this.CurrentFrame = 0; this.Frames = new Array(); this.Tickers = new Array(); this.NextFrameDelay = 2500; this.FrameEffect = ''; this.FrameChangeType = 'Frame'; this.FrameHeight = 0; this.FrameWidth = 0; this.ScrollSpeed = 30; this.ScrollHeight = 0; this.ScrollWidth = 0; this.ScrollDirection = 'vertical'; this.Paused = false; this.Browser = "uplevel"; } RadRotator.prototype.ClearTicker = function() { var firstIndex; var lastIndex; if (this.Tickers.length) { tlrkScrollReadyState = false; var tickerCounter = this.Tickers.length; firstIndex = (this.CurrentFrame) * (tickerCounter / this.Frames.length); lastIndex = firstIndex + (tickerCounter / this.Frames.length); } for (var i=firstIndex; i this.Lines[this.CurrentLine].length) { if (this.OnEnd) { this.OnEnd(); } this.CurrentLine = this.CurrentLine + 1; this.CurrentChar = 0; if (this.CurrentLine > this.Lines.length - 1) { overflowFlag = true; this.CurrentLine = 0; } if (overflowFlag && this.LineLoop == false) return; eval(this.ID + " = " + "this;"); window.setTimeout( this.ID + ".PrintNextChar(true)", this.NewLineDelay); return; } if (this.StatusBar) window.status += this.Lines[this.CurrentLine].charAt(this.CurrentChar-1); else con.innerHTML += this.Lines[this.CurrentLine].charAt(this.CurrentChar-1); eval(this.ID + " = " + "this;"); window.setTimeout( this.ID + ".PrintNextChar(false)", this.NewCharDelay); }