/*---------------------------------------------------------------------------*/ | Subject: Rotate AD | NameSpace: System.Web.UI.WebControls.MzRotateImage | Author: meizz | Created: 2006-11-11 | Version: 2006-12-06 |----------------------------------- | MSN: huangfr@msn.com QQ:112889082 Copyright (c) meizz | http://www.meizz.com/jsframework/ MIT-style license | The above copyright notice and this permission notice shall be | included in all copies or substantial portions of the Software
MzRotateImage.prototype.focus=function(n) { clearTimeout(this.timer); if(this.useFilter){this.activeIndex=n; this.filter();} else if(this._rotate) this._rotate.focus(n); }; MzRotateImage.prototype.filter=function() { var me = this;
if(me.dispatchEvent(new System.Event("onchange"))) { var img; if(img=MzElement.check(me.id +"_img")) { var a = img.parentNode; var N; if(me.nodes.length==1) N=0 else N=me.activeIndex;