/** * ppt ���� * ������ 2012-05-17 */ function pptbox() { this.uid = pptboxhelper.getid(); pptboxhelper.instance[this.uid] = this; this._$ = function(id){return document.getelementbyid(id);}; this.width = 400;//��� this.height = 300;//�߶� this.picwidth = 15;//сͼ��� this.picheight = 9;//сͼ�߶� this.autoplayer = 4;//�զ����ż����룩 this.target = "_blank"; this._box = []; this._curindex = 0; this.showbtn = true;//�ƿ���ʾͼƭ�ϵ����ҷ���ť } pptbox.prototype = { _createmainbox : function (){ var btntop = this.height/2 - 69/2; var flashboxwidth = this.width * this._box.length + 5; var eventstr = "pptboxhelper.instance[\""+this.uid+"\"]"; var html="
"; document.write(html); if(this.showbtn){ var box=this._$(this.uid+"_mainbox"); var self=this; box.onmouseover = function(e){ if( !e ) e = window.event; var reltg = e.relatedtarget ? e.relatedtarget : e.fromelement; while( reltg && reltg != this ) reltg = reltg.parentnode; if( reltg != this ){ self._$(self.uid+"_mainbox_btn_left").style.display=""; self._$(self.uid+"_mainbox_btn_right").style.display=""; } } box.onmouseout = function(e){ if( !e ) e = window.event; var reltg = e.relatedtarget ? e.relatedtarget : e.toelement; while( reltg && reltg != this ) reltg = reltg.parentnode; if( reltg != this ){ self._$(self.uid+"_mainbox_btn_left").style.display="none"; self._$(self.uid+"_mainbox_btn_right").style.display="none"; } } } }, _init : function (){ var picstyle= ""; var eventstr = "pptboxhelper.instance['"+this.uid+"']"; var imagehtml=""; var flashbox = ""; for(var i=0;i