// //#############################// if(typeof baseObject=="undefined"){window['baseObject']={htmlSpans:[],htmlLinks:[],htmlImages:[],htmlInput:[],isRequestIng:false,initBase:function(){var jsObj=this.$("loadJs");if(this.isNull(jsObj)){document.write('');}var iframeObj=this.$("loadIframe");if(this.isNull(iframeObj)){var strDisplay="";if(navigator.userAgent.toLowerCase().indexOf('msie')>=0){strDisplay="none";}var dialogStr='';dialogStr+='
';dialogStr+='';dialogStr+='';dialogStr+='
';if(typeof(hasInitPostIframe)=='undefined'){hasInitPostIframe=true;document.write(dialogStr);}}},_submitByPost:function(targetAddr){this.$('loadDivForPost').innerHTML="";var arrUrl=targetAddr.split(/\?/gi);var strAction=arrUrl[0];var strFormElement="";if(arrUrl.length>1&&!this.isNull(arrUrl[1])){var params=arrUrl[1];var arrparam=params.split(/&/gi);for(var i=0;i';}}var regObj=new RegExp('\/\/[^\/]*\/','ig');var localDomain=document.location.href.match(regObj);localDomain=this.isNull(localDomain)?["you.video.sina.com.cn"]:localDomain;var regObj=new RegExp('\/','ig');localDomain=localDomain[0].replace(regObj,'');var strForm='
';strForm+=strFormElement;strForm+='
';this.$('loadDivForPost').innerHTML=strForm;var objForm=this.$('loadForm');if(!this.isNull(objForm)){objForm.submit();}},requestJs:function(targetAddr,varName,callBack,timeout,timeoutCallBack,method){var me=this;method=this.isNull(method)?"get":method;method=method.toLowerCase();if(true==baseObject.isRequestIng){setTimeout(function(){me.requestJs(targetAddr,varName,callBack,timeout,timeoutCallBack,method);},100);}else{baseObject.isRequestIng=true;if('get'==method){eval(varName+"=null;");this.loadJs(targetAddr,"loadJs");}else{this._submitByPost(targetAddr);}if(!this.isNull(callBack)){this.readJsData(varName,callBack,timeout,timeoutCallBack,method);}}},readJsData:function(varName,callBack,timeout,timeoutCallBack,method){timeout=this.isNull(timeout)?"30000":timeout;if(timeout<=0){baseObject.isRequestIng=false;if(!this.isNull(timeoutCallBack)){timeoutCallBack();}else{alert('数据超时了,请稍后在试')};}else{var requestJsData=null;if('get'==method){eval("requestJsData="+varName+";");}else{try{var dataIframe=document.frames?document.frames['loadIframe']:document.getElementById('loadIframe').contentWindow;var regObj=new RegExp('\/\/[^\/]*\/','ig');var IframeUrl=dataIframe.document.location.href.match(regObj);IframeUrl=this.isNull(IframeUrl)?[""]:IframeUrl;var regObj=new RegExp('\/','ig');IframeUrl=IframeUrl[0].replace(regObj,'');var regObj=new RegExp('\/\/[^\/]*\/','ig');var localUrl=document.location.href.match(regObj);localUrl=this.isNull(localUrl)?[""]:localUrl;var regObj=new RegExp('\/','ig');localUrl=localUrl[0].replace(regObj,'');if(localUrl==IframeUrl){eval("requestJsData=dataIframe."+varName+";");}}catch(e){}}if(this.isNull(requestJsData)){var me=this;setTimeout(function(){me.readJsData(varName,callBack,timeout-100,timeoutCallBack,method);},100);}else{callBack(requestJsData);baseObject.isRequestIng=false;return void(0);}}},splitHtmlCssScript:function(htmlStr){var regCss=/(?:)((\n|\r|.)*?)(?:<\/style>)|(]*>[^<>]*<\/link>)|(]*>)/img;var regScript=/(?:)((\n|\r|.)*?)(?:<\/script>)/img;var strJs=htmlStr.match(regScript);var strCss=htmlStr.match(regCss);var strHtml=htmlStr.replace(regScript,'').replace(regCss,'');return{html:strHtml,css:strCss,js:strJs};},getUserInfo:function(){var userInfo={};var viewUid=this.getCookie('VBLOG_USERID');viewUid=(typeof(viewUid)=='undefined'||this.isNull(viewUid))?"":viewUid;var userCookie=this.getCookie('VBLOG_JS_USER');userCookie=this.isNull(userCookie)?"":userCookie;var arrUserNick=userCookie.split("|");var userNick="新浪网友";var signName="";if(!this.isNull(arrUserNick)&&!this.isNull(viewUid)){if(typeof(arrUserNick[1])!="undefined"){userNick=arrUserNick[1];userNick=userNick.replace(/%2B/g,"|");userNick=decodeURIComponent(userNick).replace(/\+/img," ").replace(/\|/g,"+");}if(typeof(arrUserNick[2])!="undefined"){signName=arrUserNick[2];signName=signName.replace(/%2B/g,"|");signName=decodeURIComponent(arrUserNick[2]).replace(/\+/img," ").replace(/\|/g,"+");}}userInfo['uid']=viewUid;userInfo['nick']=userNick;userInfo['signName']=signName;return userInfo;},getCookie:function(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end));},getStrTagName:function(str){str=""+str;var tagName=str.match(/(<[^<\/>]*)|(<[^<\/>]*\/>)|(<[^<\/>]*>)/img);tagName=""+tagName;tagName=tagName.replace(/[<\/>]*/img,"");return tagName;},getStrDomAttribute:function(str){var regObj=new RegExp(' ','img');str=""+(""+str).replace(regObj," ");var arrObj={};try{var arrMachAttr=""+str;var eregStript=/(<[^<>]+\/>)|<[^<\/>]+>/ig;arrMachAttr=str.match(eregStript)[0].replace(/\/>/img," >");arrMachAttr=arrMachAttr.replace(/(<[^\/]*>)|(<[^>]*\/)|(<[^\/>]*)/ig,"").replace(/(>)|(\/>)/ig,"").replace(/*=*/ig,"=");var eregi=/[^<\/>]*=[^<>]*/img;arrMachAttr=arrMachAttr.match(eregi);if(!this.isNull(arrMachAttr)){for(var i=0;i]+>/gi,'');if(this.isNull(returnStr)){returnStr="";}return returnStr;},strToElement:function(str,objWin){str=""+str;if(this.isNull(objWin)){objWin=window;}var tagName=""+this.getStrTagName(str);var attrObj=this.getStrDomAttribute(str);var objEle=objWin.document?objWin.document.createElement(tagName):document.createElement(tagName);var strInnerHtml=this.stripTags(str);objEle.nodeValue=strInnerHtml;for(var indexName in attrObj){try{var key=indexName;var val=attrObj[indexName];if(!this.isNull(key)&&!this.isNull(val)){objEle.setAttribute(key,val);}}catch(e){}}return objEle;},appendHeadStr:function(str,objWin){if(this.isNull(objWin)){objWin=window;}try{var objEle=this.strToElement(str,objWin);this.appendHeaderElement(objEle,objWin);}catch(e){}},appendHeaderElement:function(objEle,objWin){if(this.isNull(objWin)){objWin=window;}try{objWin.document.getElementsByTagName("head")[0].appendChild(objEle);}catch(e){try{var firstNode=objWin.document.getElementsByTagName("body")[0].childNodes[0];firstNode.parentNode.insertBefore(objEle,firstNode);}catch(e){}}},appendScriptChild:function(_ID,_SRC){try{var objScript=document.getElementById(_ID);if(!this.isNull(objScript)){if(!this.isNull(_SRC)){objScript.src=_SRC;}}else{var s=document.createElement("SCRIPT");s.type="text/javascript";if(!this.isNull(_ID)){s.id=_ID;}if(!this.isNull(_SRC)){s.src=_SRC;}this.appendHeaderElement(s);s=null;}}catch(e){var srcAddr=this.isNull(_SRC)?"":'src="'+_SRC+'"';var idAttr=this.isNull(_ID)?"":'id="'+_ID+'"';document.write('');}},loadJs:function(jsUrl,_ID){_ID=this.isNull(_ID)?"loadJs":_ID;if(navigator.userAgent.toLowerCase().indexOf('msie')>=0){var jsObj=this.$(_ID);if(this.isNull(jsObj)){this.appendScriptChild(_ID,jsUrl);}else{jsObj.src=jsUrl;}}else{var js=document.createElement("script");js.setAttribute("type","text/javascript");js.setAttribute("src",jsUrl);document.body.insertBefore(js,null);}},getHtml:function(htmlObj){if(this.isNull(htmlObj)){htmlObj=document;}this.htmlSpans=htmlObj.getElementsByTagName("SPAN");this.htmlLinks=htmlObj.getElementsByTagName("A");this.htmlImages=htmlObj.getElementsByTagName("IMG");this.htmlInput=htmlObj.getElementsByTagName("INPUT");},getDim:function(htmlObj){var rd={x:0,y:0};do{rd.x+=htmlObj.offsetLeft;rd.y+=htmlObj.offsetTop;htmlObj=htmlObj.offsetParent;}while(htmlObj)return rd;},getPageSize:function(objWin){var xScroll,yScroll;objWin=this.isNull(objWin)?window:objWin;if(document.body&&document.body.scrollHeight>document.body.offsetHeight){xScroll=objWin.document.body.scrollWidth;yScroll=objWin.document.body.scrollHeight;}else if(document.documentElement){xScroll=objWin.document.documentElement.scrollWidth;yScroll=objWin.document.documentElement.scrollHeight;}var windowWidth,windowHeight;if(self.innerHeight){windowWidth=objWin.innerWidth;windowHeight=objWin.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=objWin.document.documentElement.clientWidth;windowHeight=objWin.document.documentElement.clientHeight;}else if(document.body){windowWidth=objWin.document.body.clientWidth;windowHeight=objWin.document.body.clientHeight;}if(yScrolltotalpage&&totalpage>0){page=totalpage;}return page;},isNull:function(object){return(object==""||object==null||object=="undefined");},addEvent:function(obj,EventName,callBack){obj["on"+EventName]=callBack;},pxParseInt:function(strPx){return parseInt((""+strPx).toLowerCase().replace(/px/g,""))},pointerX:function(event){try{return event.pageX||(event.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));}catch(e){return 0;}},pointerY:function(event){try{return event.pageY||(event.clientY+(document.documentElement.scrollTop||document.body.scrollTop));}catch(e){return 0;}},$:function(idname){if(document.getElementById){return document.getElementById(idname);}else if(document.all){return document.all[idname];}else if(document.layers){return document.layers[idname];}else{return null;}},getUnicodeLen:function(sChars){return sChars.replace(/[^\x00-\xff]/g,"xx").length;},cutUnicodeStr:function(sSource,iLen,ELIDED){if(this.getUnicodeLen(sSource)<=iLen){return sSource;}if(typeof(ELIDED)=='undefined'||ELIDED==null){ELIDED="..."}var str="";var l=0;var schar;for(var i=0;schar=sSource.charAt(i);i++){var charLen=(schar.match(/[^\x00-\xff]/)!=null?2:1);if(l>iLen-ELIDED.length-charLen){break;}else{str+=schar;l+=charLen;}}str+=ELIDED;return str;},_splitByTwoPart:function(srcstr,iLen){arrReturn={};sStr="";eStr="";if(this.getUnicodeLen(srcstr)<=iLen){sStr=srcstr;}else{var l=0;var schar;for(var i=0;iiLen-charLen){eStr+=schar;}else{sStr+=schar;}l+=charLen;}}arrReturn['s']=sStr;arrReturn['e']=eStr;return arrReturn;},splitByLength:function(fullStr,splitLength,splicChar,userBr){fullStr=""+fullStr;splitLength=parseInt(splitLength);if(0==splitLength){splitLength=this.getUnicodeLen(fullStr)}var eachRow=[];var strReturn="";if(this.isNull(splicChar)){splicChar='
';}if(this.isNull(userBr)){userBr=true;}if(userBr){eachRow=fullStr.split(/]*>/img);}else{eachRow[0]=fullStr;}for(var i=0;i]*>[\r\n\t]*)$/ig,"");return strReturn;},getDomAttribute:function(clickObj){var objAttr={};if(clickObj.attributes&&clickObj.attributes.length){retval={};for(var i=0;i'); document.write(''); function obTopic(topicid,uid,nick,topicname,date,clicknum,vnum) { var strUrl=baseObject.urlEndode(document.location.href); nick=baseObject.urlEndode(nick); topicname=baseObject.urlEndode(topicname); date=baseObject.urlEndode(date); clicknum=baseObject.urlEndode(clicknum); vnum=baseObject.urlEndode(vnum); var params="list_type=concerned_album&action=add&favuid="+uid+"&nickname="+nick+"&topicid="+topicid+"&name="+topicname+"&creatdate="+date+"&clicknum="+clicknum+"&vnum="+vnum+"&rewrite="+strUrl; params+="&globalId="+baseObject.getGlobalId(); var postUrl="http://control.video.sina.com.cn/useradmin/topicsset/collectTopic.php"; var jsUrl=postUrl+"?"+params; document.getElementById('collectTopic_js').src=jsUrl; //baseObject.loadJs(jsUrl,"collectTopic_js"); //MyAJAX("POST", postUrl, params, "text", obTopicResult); } function obTopicResult(responseText) { if(responseText == 0) { alert("您还未登陆,请登陆后再操作!"); } else if(responseText == 1) { alert("成功收藏该专辑,谢谢关注!"); } else if(responseText == 2) { alert("该专辑已经存在于收藏列表中,谢谢收藏!"); } else if(responseText == -1) { alert("未添加成功,请稍后再试!"); } }// //#############################// /* 封装的AJAX类 * * songjian 2007.03.06 v1.0 songjian@staff.sina.com.cn * * @param act string 提交方式 POST/GET * @param requesturl string 提交的PHP文件 * @param param string 提交地址后跟的参数 * @param returnformat string 以何种方式返回 TEXT/XML * @param event function 回调的用户函数 * * var request.readyState HTTP就绪状态 * 0:请求没有发出(在调用open()之前) * 1:请求已经建立但还没有发出(调用send()之前) * 2:请求已经发出正在处理之中(这里通常可以从响应得到内容头部) * 3:请求已经处理,响应中通常有部分数据可用, 但是服务器还没有完成响应 * 4:响应已完成,可以访问服务器响应并使用它 * * 使用方法: * html: * //引入js文件 *
* * /*---------------------------------------------------------*/ function Ajax(async){ this.async = async ? true : false; this.init = function(){ try{ this.handler = new XMLHttpRequest(); return true; }catch(e){ try{ this.handler = new ActiveXObject('Microsoft.XMLHTTP'); return true; }catch(e){ try{ this.handler = new ActiveXObject('Msxml2.XMLHTTP'); return true; }catch(e){ return false; } } } } this.not_ready = function(){ return (this.handler.readyState && (this.handler.readyState < 4)); } this.onreadystatechange = function(event){ if (!this.handler) this.init(); if (typeof event == 'function') { this.handler.onreadystatechange = event; }else{ alert('XML Sender OnReadyState event Must function'); } } this.post = function(desturl, datastream){ if (!this.handler) { this.init(); } if (!this.not_ready()) { this.handler.open('POST', desturl, this.async); if (typeof(this.handler.setRequestHeader) != 'undefined') { this.handler.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } this.handler.send(datastream); if (!this.async && this.handler.readyState == 4 && this.handler.status == 200) { return true; } } return false; } this.get = function(desturl, datastream) { if (!this.handler) { this.init(); } if (!this.not_ready()) { this.handler.open('GET', desturl + "?" + datastream, this.async); this.handler.send(null); if (!this.async && this.handler.readyState == 4 && this.handler.status == 200) { return true; } } return false; } } function MyAJAX(act, requesturl, param, returnformat, event){ this.act = act; this.requesturl = requesturl; this.param = param; this.returnformat = returnformat this.callback = event; this.xml = null; this.user = function(){ this.xml = new Ajax(true); if (this.act.toLowerCase() == 'post'){ this.xml.post(this.requesturl, this.param); this.xml.onreadystatechange(this.callBackResponse); } else if(this.act.toLowerCase() == 'get'){ this.xml.get(this.requesturl, this.param); this.xml.onreadystatechange(this.callBackResponse); } } this.urlencode = function(text){ return escape(text).replace(/\+/g, "%2B"); } var me = this; this.callBackResponse = function(){ if (me.returnformat.toLowerCase() == 'xml'){ if (me.xml.handler.readyState == 4 && me.xml.handler.status == 200 && me.xml.handler.responseXML){ me.callback(me.xml.handler.responseXML); //alert(me.xml.handler.responseXML.documentElement); } } else { if (me.xml.handler.readyState == 4 && me.xml.handler.status == 200 && me.xml.handler.responseText){ me.callback(me.xml.handler.responseText); } } } this.user(); } // //#############################// String.prototype.trim = function() { a = this.replace(/^\s+/, ''); return a.replace(/\s+$/, ''); }; function $(idname){ if (document.getElementById){ return document.getElementById(idname); } else if (document.all) { return document.all[idname];} else if (document.layers) { return document.layers[idname]; } else { return null; } }; function $$(idname){ return document.frames?document.frames[idname]:$(idname).contentWindow; } function selfGetWinSize() { var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } return {h:windowHeight,w:windowWidth}; } function parentGetWinSize() { var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer windowWidth = parent.self.innerWidth; windowHeight = parent.self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = parent.document.documentElement.clientWidth; windowHeight = parent.document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = parent.document.body.clientWidth; windowHeight = parent.document.body.clientHeight; } return {h:windowHeight,w:windowWidth}; } function $t(parentobj, tag){ if (typeof parentobj.getElementsByTagName != 'undefined') {return parentobj.getElementsByTagName(tag);} else if (parentobj.all && parentobj.all.tags){return parentobj.all.tags(tag);} else {return null;} }; function $x(parentobj, tag) { var tags = $t(parentobj, tag); return tags[0].firstChild.nodeValue; } /* function $c(s){ return document.createElement(s); }; */ function is_null(val){ return (val == "" || val == null || val == "undefined"); }; function str_len(key){ var l=escape(key),len; len=l.length-(l.length-l.replace(/\%u/g,"u").length)*4; l=l.replace(/\%u/g,"uu"); len=len-(l.length-l.replace(/\%/g,"").length)*2; return len; }; function show_error(msg, errid) { var divBody = '\
\ \ ' + msg + '\
\ '; if (is_null(errid)) errid = "dialogError"; $(errid).innerHTML = divBody;$(errid).style.display = 'block'; try{ document.getElementById("codenum").src="http://you.video.sina.com.cn/include/checknumber.php?a="+Math.random(10); }catch(e){} set_focus(errid); }; function hidden_error(errid) { try { $("dialogError").style.display = 'none'; }catch (e){}; try { $(errid).style.display = 'none'; }catch (e){} }; function set_focus(idname){ if (!is_null(idname)) { try {$(idname).focus();}catch (e){} } }; function VS_Ajax(async) { this.async = async ? true : false; }; VS_Ajax.prototype.init = function(){ try { this.handler = new XMLHttpRequest(); return true; } catch(e) { try { this.handler = new ActiveXObject('Microsoft.XMLHTTP'); return true; } catch(e) { try { this.handler = new ActiveXObject('Msxml2.XMLHTTP'); return true; } catch(e) { return false; } } } }; VS_Ajax.prototype.not_ready = function(){ return (this.handler.readyState && (this.handler.readyState < 4)); }; VS_Ajax.prototype.onreadystatechange = function(event){ if (!this.handler) { this.init(); } if (typeof event == 'function') { this.handler.onreadystatechange = event; } else { alert('XML Sender OnReadyState event Must function'); } }; VS_Ajax.prototype.post = function(desturl, datastream){ if (!this.handler){ this.init(); } if (!this.not_ready()){ this.handler.open('POST', desturl, this.async); if (typeof(this.handler.setRequestHeader) != "undefined"){ this.handler.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } this.handler.send(datastream); if (!this.async && this.handler.readyState == 4 && this.handler.status == 200){ return true; } } return false; }; VS_Ajax.prototype.get = function(desturl, datastream){ if (!this.handler){ this.init(); } if (!this.not_ready()){ this.handler.open('GET', desturl + "?" + datastream, this.async); this.handler.send(null); if (!this.async && this.handler.readyState == 4 && this.handler.status == 200){ return true; } } return false; }; var agt = navigator.userAgent.toLowerCase(); var is_opera = (agt.indexOf("opera") != -1); var is_ie = (agt.indexOf("msie") != -1) && document.all && !is_opera; var is_ie5 = (agt.indexOf("msie 5") != -1) && document.all; var uniqnum_counter = (new Date).getTime(); var is_regexp = (window.RegExp) ? true : false; var gidname = ''; function exist(s) { return $(s)!=null; } function removeNode(s) { if(exist(s)) { $(s).innerHTML = ''; $(s).removeNode?$(s).removeNode():$(s).parentNode.removeChild($(s)); } } function myInnerHTML(idname, html) { if (exist(idname)) { $(idname).innerHTML = html; } } function dialog() { var titile = '播客视频提示'; var width = '350'; var height = '120'; var path = "http://image2.sina.com.cn/pfp/ask/images/zhishi/"; var sFunc = ' '; var sClose = ''; var sBody = '\ \ \ \ \ \
\
 
\
' + sFunc + '
\ '; var sBox = '\ \ '; var sIfram = '\ \ '; var sBG = '\
\ '; this.show = function() { this.middle('dialogBox'); if ($('dialogIframBG')) { $('dialogIframBG').style.top = $('dialogBox').style.top; $('dialogIframBG').style.left = $('dialogBox').style.left; $('dialogIframBG').style.width = $('dialogBox').offsetWidth; $('dialogIframBG').style.height = $('dialogBox').offsetHeight; $('dialogIframBG').style.display = 'block'; } if (!is_opera) { this.shadow(); } } this.reset = function() { this.close(); _set_id_focus(); } this.resets = function(parentobj, _sName) { this.close(); try {parentobj._sName.submit();}catch (e){} } this.close = function() { if (window.removeEventListener) { window.removeEventListener('resize', this.event_b, false); window.removeEventListener('scroll', this.event_b, false); } else if (window.detachEvent) { try { window.detachEvent('onresize', this.event_b); window.detachEvent('onscroll', this.event_b); } catch (e) {} } if ($('dialogIframBG')) { $('dialogIframBG').style.display = 'none'; } $('dialogBox').style.display='none'; $('dialogBoxBG').style.display='none'; $('dialogBoxShadow').style.display = "none"; myInnerHTML('dialogBody', sBody); } this.html = function(_sHtml) { myInnerHTML('dialogBody', _sHtml); this.show(); } this.init = function() { $('dialogCase') ? $('dialogCase').parentNode.removeChild($('dialogCase')) : function(){}; var oDiv = document.createElement('span'); oDiv.id = "dialogCase"; if (!is_opera) { oDiv.innerHTML = sBG + sIfram + sBox; } else { oDiv.innerHTML = sBG + sBox; } document.body.appendChild(oDiv); $('dialogBoxBG').style.height = document.body.scrollHeight; } this.button = function(_sId, _sFuc) { if($(_sId)) { $(_sId).style.display = ''; if($(_sId).addEventListener) { if($(_sId).act) { $(_sId).removeEventListener('click', function(){eval($(_sId).act)}, false); } $(_sId).act = _sFuc; //$(_sId).addEventListener('click', function(){eval(_sFuc)}, false); if ($(_sId).addEventListener) { $(_sId).addEventListener('click', function(){eval(_sFuc)}, false); } else if ($(_sId).attachEvent) { var r = $(_sId).attachEvent('on' + 'click', function(){eval(_sFuc)}); } else { $(_sId)['on' + evType] = function(){eval(_sFuc)}; } } else { if($(_sId).act) { $(_sId).detachEvent('onclick', function(){eval($(_sId).act)}); } $(_sId).act = _sFuc; $(_sId).attachEvent('onclick', function(){eval(_sFuc)}); } } } this.shadow = function() { var oDialog = $('dialogBox'); this.event_b_show(); if (window.attachEvent) { window.attachEvent('onresize', this.event_b); window.attachEvent('onscroll', this.event_b); } else { window.addEventListener('resize', this.event_b, false); window.addEventListener('scroll', this.event_b, false); } } this.event_b = function() { var oShadow = $('dialogBoxShadow'); if (oShadow.style.display != "none") { oShadow['style']['position'] = "absolute"; oShadow['style']['display'] = ""; oShadow['style']['opacity'] = "0.2"; oShadow['style']['filter'] = "alpha(opacity=20)"; oShadow['style']['background'] = "#000"; var sClientWidth = parent ? parent.document.body.offsetWidth : document.body.offsetWidth; var sClientHeight = parent ? parent.document.body.offsetHeight : document.body.offsetHeight; var sScrollTop = parent ? parent.document.body.scrollTop : document.body.scrollTop; oShadow['style']['top'] = '0'; oShadow['style']['left'] = '0'; oShadow['style']['width'] = sClientWidth; oShadow['style']['height'] = sClientHeight + sScrollTop; } } this.event_b_show = function(e) { var oShadow = $('dialogBoxShadow'); oShadow['style']['position'] = "absolute"; oShadow['style']['display'] = ""; oShadow['style']['opacity'] = "0.2"; oShadow['style']['filter'] = "alpha(opacity=20)"; oShadow['style']['background'] = "#000"; var sClientWidth = parent ? parent.document.body.offsetWidth : document.body.offsetWidth; var sClientHeight = parent ? parent.document.body.offsetHeight : document.body.offsetHeight; var sScrollTop = parent ? parent.document.body.scrollTop : document.body.scrollTop; oShadow['style']['top'] = '0'; oShadow['style']['left'] = '0'; oShadow['style']['width'] = sClientWidth; oShadow['style']['height'] = sClientHeight + sScrollTop; } this.open = function(_sUrl, _sMode, _sClose) { this.show(); if(!_sMode || _sMode == "no" || _sMode == "yes"){ var openIframe = ""; myInnerHTML('dialogBody', openIframe); } _sClose ? this.button('dialogBoxClose', _sClose) : function(){}; } this.showWindow = function(_sUrl, _iWidth, _iHeight, _sMode) { var oWindow; var sLeft = (screen.width) ? (screen.width - _iWidth)/2 : 0; var iTop = -80 + (screen.height - _iHeight)/2; iTop = iTop > 0 ? iTop : (screen.height - _iHeight)/2; var sTop = (screen.height) ? iTop : 0; if(window.showModalDialog && _sMode == "m"){ oWindow = window.showModalDialog(_sUrl,"","dialogWidth:" + _iWidth + "px;dialogheight:" + _iHeight + "px"); } else { oWindow = window.open(_sUrl, '', 'height=' + _iHeight + ', width=' + _iWidth + ', top=' + sTop + ', left=' + sLeft + ', toolbar=no, menubar=no, scrollbars=' + _sMode + ', resizable=no,location=no, status=no'); this.reset(); } } this.event = function(_sMsg, _sOk, _sCancel, _sClose) { myInnerHTML('dialogFunc', sFunc); myInnerHTML('dialogClose', sClose); $('dialogBodyBox') == null ? $('dialogBody').innerHTML = sBody : function(){}; $('dialogMsg') ? $('dialogMsg').innerHTML = _sMsg : function(){}; _sOk && _sOk != "" ? this.button('dialogOk', _sOk) : $('dialogOk').style.display = 'none'; _sCancel && _sCancel != "" ? this.button('dialogCancel', _sCancel) : $('dialogCancel').style.display = 'none'; _sClose ? this.button('dialogBoxClose', _sClose) : function(){}; this.show(); } this.set = function(_oAttr, _sVal) { var oShadow = $('dialogBoxShadow'); var oDialog = $('dialogBox'); var oHeight = $('dialogHeight'); if(!is_null(_sVal)) { switch(_oAttr) { case 'title': myInnerHTML('dialogBoxTitle', _sVal); break; case 'width': oDialog.style.width = _sVal+'px'; break; case 'height': oHeight.style.height = _sVal+'px'; break; } } this.middle('dialogBox'); oShadow['style']['top'] = oDialog.offsetTop + 6; oShadow['style']['left'] = oDialog.offsetLeft + 6; oShadow['style']['width'] = oDialog.offsetWidth; oShadow['style']['height'] = oDialog.offsetHeight; } this.middle = function(_sId) { try { var aIframe = parent.document.getElementById("iframe_parent"); } catch (e){} if (aIframe) { var sClientWidth = aIframe.offsetWidth; var sClientHeight = aIframe.offsetHeight; var sScrollTop = 0; } else { var sClientWidth = parent ? parentGetWinSize().w : selfGetWinSize().w; var sClientHeight = parent ? parentGetWinSize().h : selfGetWinSize().h; var sScrollTop = parent ? parent.document.body.scrollTop : document.body.scrollTop; } var sleft = (document.body.clientWidth / 2) - ($(_sId).offsetWidth / 2); var iTop = -80 + (sClientHeight / 2 + sScrollTop) - ($(_sId).offsetHeight / 2); var sTop = iTop > 0 ? iTop : (sClientHeight / 2 + sScrollTop) - ($(_sId).offsetHeight / 2); sTop=sTop+50; $(_sId)['style']['display'] = ''; $(_sId)['style']['position'] = "absolute"; $(_sId).style.left = sleft+'px'; $(_sId).style.top = sTop+'px'; } } function _error_msg_show(msg, click, idname, title) { gidname = idname; click = click ? click : ' '; title = title ? title : '播客视频提示'; dg=new dialog(); dg.init(); dg.set('title', title); dg.event(msg, click, '', click); } function _error_msg_show_parent(msg, click, idname, title) { gidname = idname; click = click ? click : ' '; title = title ? title : '播客视频提示'; dg=new parent.dialog(); dg.init(); dg.set('title', title); dg.event(msg, click, '', click); } function _confirm_msg_show(msg, click_ok, click_no, title, width, height) { click_ok = click_ok ? click_ok : ' '; click_no = click_no ? click_no : ' '; title = title ? title : '播客视频提示'; dg=new dialog(); dg.init(); dg.set('title', title); if (width) { dg.set('width', width); } if (height) { dg.set('height', height); } dg.event(msg, click_ok, click_no, click_no); } function _confirm_msg_show_parent(msg, click_ok, click_no, title, width, height) { click_ok = click_ok ? click_ok : ' '; click_no = click_no ? click_no : ' '; title = title ? title : '播客视频提示'; dg=new parent.dialog(); dg.init(); dg.set('src', ''); dg.set('title', title); if (width) { dg.set('width', width); } if (height) { dg.set('height', height); } dg.event(msg, click_ok, click_no, click_no); } function _set_id_focus() { if (!is_null(gidname)) { try {$(gidname).focus();}catch (e){} } } function openWindow(_sUrl, _sWidth, _sHeight, _sTitle, _sClickNo, _sScroll) { var oEdit = new dialog(); oEdit.init('yes'); oEdit.set('title', _sTitle ? _sTitle : "播客视频提示" ); oEdit.set('width', _sWidth); oEdit.set('height', _sHeight); oEdit.open(_sUrl, _sScroll != "yes" ? 'no' : 'yes', _sClickNo); } function getPageParam(paramname) { var tmpArr,QueryString; var URL = document.location.toString(); if(URL.lastIndexOf("?")!=-1) { QueryString= URL.substring(URL.lastIndexOf("?")+1,URL.length); tmpArr=QueryString.split("&"); for (i=0;i 0) { return RegExp.$2; } } } } return 0; }// //#############################// function getIdNum(){var today,hour,second,minute,year,month,date;var strDate;today=new Date();year=today.getYear();month=today.getMonth()+1;date=today.getDate();hour=today.getHours();minute=today.getMinutes();second=today.getSeconds();strDate=""+year+month+date+hour+minute+second+parseInt(Math.random()*100);return strDate;}function $(idname){if(document.getElementById){return document.getElementById(idname);}else if(document.all){return document.all[idname];}else if(document.layers){return document.layers[idname];}else{return null;}}function hidObj(ObjId){$(ObjId).style.display="none";}function showObj(ObjId){$(ObjId).style.display="";}function is_null(object){return(object==""||object==null||object=="undefined");}function getWinSize(){var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}return{h:windowHeight,w:windowWidth};}function getParam(paramname){var tmpArr,QueryString;var URL=document.location.toString();if(URL.lastIndexOf("?")!=-1){QueryString=URL.substring(URL.lastIndexOf("?")+1,URL.length);tmpArr=QueryString.split("&");for(i=0;i0){return RegExp.$2;}}}}return 0;}function trim(str){return str.replace(/(^\s*)|(\s*$)/g,"");}function ltrim(str){return str.replace(/(^\s*)/g,"");}function rtrim(str){return str.replace(/(\s*$)/g,"");}function writeLeave(formElement,objShow,maxl){if(getStringLen(formElement.value,1)>maxl){formElement.value=cutString(formElement.value,maxl,1);try{objShow.value=0;}catch(e){}try{objShow.innerHTML=0;}catch(e){}}else{try{objShow.value=maxl-getStringLen(formElement.value,1);}catch(e){}try{objShow.innerHTML=maxl-getStringLen(formElement.value,1);}catch(e){}}}function cutString(str,cutLentth,gbkLen){return str.substring(0,cutLentth);}function getStringLen(str,gbkLen){str=ltrim(str);if(2==gbkLen){str=str.replace(/[^\x00-\xff]/g,"**");}return str.length;}function setPage(){this.commTplCallBack="";this.init=function(total,pagesize,page,showPages,bigMoveStep){total=parseInt(total);pagesize=parseInt(pagesize);page=parseInt(page);if(page<=0){page=1;}showPages=parseInt(showPages);bigMoveStep=parseInt(bigMoveStep);this.returnpage=new pageAttr();var totalpage=1;if(total%pagesize){totalpage=parseInt(total/pagesize)+1;}else{totalpage=parseInt(total/pagesize);}if(page>=totalpage){page=totalpage;}var firstPage=1;var lastPage=totalpage;var prePage=page-1;var showPrePage=true;if(prePage<=0){showPrePage=false;}var nextPage=page+1;var showNextPage=true;if(nextPage>totalpage){showNextPage=false;}var bigPrePage=page-bigMoveStep;var showBigPrePage=true;if(bigPrePage<=0){showBigPrePage=false;}var BigNextPage=page+bigMoveStep;var showBigNextPage=true;if(BigNextPage>totalpage){showBigNextPage=false;}var beginMove=0;var endMove=0;if(showPages%2){beginMove=parseInt(showPages/2);endMove=parseInt(showPages/2);}else{beginMove=parseInt(showPages/2);endMove=parseInt(showPages/2)-1;}var beginPage=page-beginMove;var endPage=page+endMove;if(beginPage<=0){if(endPage+(1-beginPage)<=totalpage){endPage=endPage+(1-beginPage);}else{endPage=totalpage;}beginPage=1;}if(endPage>totalpage){if(beginPage-(endPage-totalpage)>0){beginPage=beginPage-(endPage-totalpage);}else{beginPage=1;}endPage=totalpage;}this.returnpage.firstPage=firstPage;this.returnpage.lastPage=lastPage;this.returnpage.prePage=prePage;this.returnpage.nextPage=nextPage;this.returnpage.showPrePage=showPrePage;this.returnpage.showNextPage=showNextPage;this.returnpage.bigPrePage=bigPrePage;this.returnpage.showBigPrePage=showBigPrePage;this.returnpage.BigNextPage=BigNextPage;this.returnpage.showBigNextPage=showBigNextPage;this.returnpage.page=page;this.returnpage.beginPage=beginPage;this.returnpage.endPage=endPage;this.returnpage.totalpage=totalpage;};this.setTplCallBack=function(callbackName){this.commTplCallBack=callbackName;};this.show=function(){if(""!=this.commTplCallBack){strjs=this.commTplCallBack+"(this.returnpage);";eval(strjs);}};}function filterPage(page,totalpage){try{page=parseInt(page);}catch(e){page=1;}if(isNaN(page)||page<=0){page=1;}if(page>totalpage&&totalpage>0){page=totalpage;}return page;}function pageAttr(){this.firstPage="";this.lastPage="";this.prePage="";this.nextPage="";this.showPrePage="";this.showNextPage="";this.bigPrePage="";this.showBigPrePage="";this.BigNextPage="";this.showBigNextPage="";this.page="";this.beginPage="";this.endPage="";this.totalpage="";}$class=function(className,parentElement){var children=($(parentElement)||document).getElementsByTagName('*');var ret=[];for(var i=0;i";confirmDialog+="";confirmDialog+="";confirmDialog+="";confirmDialog+="";confirmDialog+="播客提示";confirmDialog+="";confirmDialog+="";confirmDialog+="";confirmDialog+="";confirmDialog+="
";confirmDialog+="
";confirmDialog+="
";confirmDialog+="
温馨提示
";confirmDialog+="
";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+=" ";confirmDialog+="
 
"+strMsg+"
 
";confirmDialog+="
";confirmDialog+="
";confirmDialog+="
";confirmDialog+="";confirmDialog+="";return confirmDialog;}function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}function removeEvent(obj,evType,fn,useCapture){if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}function compressNL(s,n){var c="\r\n";s=compressChar(c,s,n);s=s.replace(/(\r\n)$/g,"");return s;}function compressSpace(s,n,m){if(trim(s)==""){return "";}n=parseInt(n);m=parseInt(m);var c=' ';var tn=n+1,re;var cm=mkstring(c,m);re=eval("/([ | ]{"+tn+",})/g");s=s.replace(re,cm);var cn=mkstring(c,n);re=eval("/([ | ]{"+n+"})/g");s=s.replace(re,cn);return s;}function mkstring(c,m){var r="";for(var i=0;i=n){r+=ch;}else{r+=ch+c;}}else{if(ss[j]!=undefined){d=c;}else{d="";}r+=ch+d;k=0;}}return r;}function space2nbsp(s){return s.replace(/([|]{2})/g,"  ");}function nl2br(s){return s.replace(/([\n])/g,"
");} // //#############################// String.prototype.cnLength=function(){return this.replace(/[^\x00-\xff]/g,"**").length} // 对话框 var vDialog = { sFrame: 'iframeShow', loding: '
正在读取数据...
', $: function(_sID){ return document.getElementById(_sID); }, $$: function(_sID){ return document.frames ? document.frames[_sID] : this.$(_sID).contentWindow; }, createWin:function(){ if(!this.$('win')){ var objWin=document.createElement("div"); var tBody=document.getElementsByTagName("BODY")[0]; objWin.id="win"; objWin.style.cssText="position:absolute;display:none;top:0px;left:0px;z-index:90000;"; tBody.appendChild(objWin); } if(!this.$('iframeShow')){ this.$('win').innerHTML=''; } }, set: function(_sID){ this.createWin(); var cThis = this.$(_sID); this.$('win').style.width = cThis.style.width; this.$('win').style.height = cThis.style.height; }, self: function(_sID){ var sHTML = this.$(_sID).innerHTML; this.$$('iframeShow').document.open("text/html","replace"); this.$$('iframeShow').document.write(sHTML); this.$$('iframeShow').document.close(); }, getObj: function() { return this.$$('iframeShow'); }, writeObj: function(str){ this.$$('iframeShow').document.open("text/html","replace"); this.$$('iframeShow').document.write(str); this.$$('iframeShow').document.close(); }, setSize: function(_iWidth,_iHeight){ this.createWin(); this.$('win').style.width = _iWidth+'px'; this.$('iframeShow').style.width = _iWidth+'px'; this.$('win').style.height =_iHeight+'px'; this.$('iframeShow').style.height =_iHeight+'px'; this.$('win').style.display = "block"; }, win: function(_oThis, _sMake , _sUrl, _iWidth, _iHeight, _iTop, _iLeft){ this.createWin(); if(this.hide(_oThis, _sMake)){ this.$('win').setAttribute('ctrl', _sMake); if(_iWidth) this.$('win').style.width = _iWidth + 'px'; this.$('iframeShow').style.width = _iWidth+'px'; if(_iHeight) this.$('win').style.height = _iHeight + 'px'; this.$('iframeShow').style.height =_iHeight+'px'; if(_iTop) this.$('win').style.top = _iTop + 'px'; if(_iLeft) this.$('win').style.left = (_oThis.offsetLeft + _iLeft) + 'px'; try{ this.$$('iframeShow').document.open("text/html","replace"); this.$$('iframeShow').document.write(this.loding); this.$$('iframeShow').document.close(); }catch(e){} this.$('iframeShow').src = _sUrl; this.$('win').style.display = "block"; } }, hide: function(_oThis, _sMake){ var mark = this.$('win').getAttribute('ctrl'); if(this.$('win').style.display == 'block' && mark == _sMake){ this.$('win').style.display = 'none'; return false; } return true; }, reset: function(){ this.createWin(); this.$('win').style.display = 'none'; }, iframeResize: function(){ var reFraem = this.$$(this.sFrame); if (reFraem != null){ var sWidth = reFraem.document.body.offsetHeight.toString(); var sHeight = reFraem.document.body.offsetWidth.toString(); if(sWidth != '0' && sHeight != '0'){ this.$('win').style.height = sWidth + 'px'; this.$('win').style.width = sHeight + 'px'; this.$('iframeShow').style.height = sWidth + 'px'; this.$('iframeShow').style.width = sHeight + 'px'; } } }, copy: function(_sID, _sTxt){ var oCtrl = parent.vDialog.$(_sID).select(); oCtrl.createTextRange().execCommand("Copy"); alert(_sTxt); parent.vDialog.reset(); } };// //#############################// function init_checkbox(){var keys=document.getElementsByName('ck1');for(i=0;i请您选择要播放的视频

");return false;}myPlayList=myPlayList.substring(0,myPlayList.length-1);if(myPlayList.length==0){return false;}window.open("http://you.video.sina.com.cn/playall.php?vid="+myPlayList+"&auto=1&action=topic","","");}function changeTopicVideoLink(tid,page,sorttype){var href="http://you.video.sina.com.cn/a";location.href=href+'/'+tid+'/'+page+'/'+sorttype+'.html';}function ret_set_ovdone(thistab,othertab,uid,vid){ov_done=0;toogleTab(thistab,othertab,uid,vid);}function toogleTab(thistab,othertab,uid,vid){if(thistab.id=="right_other"){thistab.innerHTML=innerText(thistab);othertab.innerHTML=''+innerText(othertab)+'';var o=$("othervideo");rv=o.innerHTML;if(ov_done==0){o.innerHTML='

数据载入中...

';strparam="uid="+uid+"&vid="+vid;MyAJAX("GET","http://you.video.sina.com.cn/pg/topicdetail/play_ov.php",strparam,"text",ov_callback);}else{o.innerHTML=ov;$('right_more').style.display=o.more;}}else{thistab.innerHTML=innerText(thistab);othertab.innerHTML=''+innerText(othertab)+'';var o=$("othervideo");ov=o.innerHTML;o.innerHTML=rv;o.more=$('right_more').style.display;$('right_more').style.display="none";}}function ov_callback(data){var d2=$("right_other");if(d2.innerHTML==innerText(d2)){var o=$("othervideo");b_more_other=data.substr(0,1);if(b_more_other==1){$('right_more').style.display="inline";}else{$('right_more').style.display="none";}o.innerHTML=data.substr(1);playlist.selectPicture({'tag':'a','name':'playlist'},o);ov=data;ov_done=1;}}function othermore(uid){var d2=$("right_other");if(d2.innerHTML==innerText(d2)){window.location="/m/"+uid;}else{window.location="/m/"+uid;}}function tooglestar(toon,tooff){toon.style.display='block';tooff.style.display='none';}function xl_mc(x,vid,uid,tag){curstar=x;$("ss_img").innerHTML="";$("mt").innerHTML="评星提交中...";sendRequest(star_callback,"/play_star.php","starn="+x+"&vid="+vid+"&uid="+uid+"&tags="+escape(tag),"POST");}function innerText(o){if(document.all){return o.innerText;}else{return o.textContent;}}function play_recom(e,sid,name){var url='/pg/special/play_recom.html?sid='+escape(sid)+'&name='+escape(name);vDialog.win(e,'tellvideo',url,470,270,100,100);}// //#############################// var base = { tmp: {}, swfTmp: null, $: function(_sID){ return document.getElementById(_sID); }, $$: function(_sID){ return document.frames ? document.frames[_sID] : this.$(_sID).contentWindow; }, $F: function(_sID){ return navigator.appName.indexOf("Microsoft") != -1 ? window[_sID] : document[_sID]; }, hide: function(_sID){ if(this.$(_sID).style.display == 'none') this.$(_sID).style.display = ''; else this.$(_sID).style.display = 'none'; }, select: function(_oThis, _sTag, _oArea, _vChange){ var sFlg = true; var aObject = document.getElementsByTagName(_sTag); for(var i = 0; i < aObject.length; i++){ for(attribute in _oArea){ if(aObject[i].getAttribute(attribute) == _oArea[attribute]) sFlg = false; } if(sFlg == false) for(k in _vChange) aObject[i].checked = _oThis.checked; sFlg = true; } }, getValue: function(_oThis, _sTag, _oArea){ var aValue = []; var sFlg = true; var aObject = documen t.getElementsByTagName(_sTag); for(var i = 0; i < aObject.length; i++){ for(attribute in _oArea){ if(aObject[i].getAttribute(attribute).toString() == _oArea[attribute].toString()) sFlg = false; } if(sFlg == false) aValue[aValue.length] = aObject[i].value; sFlg = true; } return aValue.toString(); }, pointer: function(_target) { var windowWidth, windowHeight; if(_target) target = _target.document; else target = document; if (self.innerHeight){ if(_target) target = _target.self; else target = self; windowWidth = target.innerWidth; windowHeight = target.innerHeight; } else if (target.documentElement && target.documentElement.clientHeight) { windowWidth = target.documentElement.clientWidth; windowHeight = target.documentElement.clientHeight; } else if (target.body) { windowWidth = target.body.clientWidth; windowHeight = target.body.clientHeight; } return {width:parseInt(windowWidth),height:parseInt(windowHeight)}; }, swfSize: function(_fID, _sMode, _iWidth, _iHeight){ var fPlayer = this.$F(_fID); var XY = this.pointer(); var parentObject = fPlayer.parentNode; while(parentObject.tagName.toUpperCase() != "DIV"){ parentObject = parentObject.parentNode; } if(!fPlayer.getAttribute('initWidth')){ fPlayer.setAttribute('initWidth', fPlayer.getAttribute('width')); fPlayer.setAttribute('initHeight', fPlayer.getAttribute('height')); } if(_sMode == 'full'){ parentObject.style.position = 'absolute'; parentObject.style.overflow = 'hidden'; parentObject.style.zIndex = '999999999'; parentObject.style.top = 0; parentObject.style.left = 0; parentObject.style.width = XY.width.toString() + 'px'; parentObject.style.height = XY.height.toString() + 'px'; this.$F(_fID)['width'] = '100%'; this.$F(_fID)['height'] = '100%'; }else if(_sMode == 'zoom'){ parentObject.style.position = 'absolute'; parentObject.style.overflow = 'hidden'; parentObject.style.width = _iWidth; parentObject.style.height = _iHeight; fPlayer['width'] = parentObject.style.width; fPlayer['height'] = parentObject.style.height; }else if(_sMode == 'init'){ parentObject.style.position = ''; parentObject.style.position = 'static'; parentObject.style.overflow = ''; parentObject.style.width = this.$F(_fID).getAttribute('initWidth') + 'px'; parentObject.style.height = this.$F(_fID).getAttribute('initHeight') + 'px'; this.$F(_fID)['width'] = this.$F(_fID).getAttribute('initWidth'); this.$F(_fID)['height'] = this.$F(_fID).getAttribute('initHeight'); } } } function browserDetect(){ var sUA = navigator.userAgent.toLowerCase(); var sIE = sUA.indexOf("msie"); var sOpera = sUA.indexOf("opera"); var sMoz = sUA.indexOf("gecko"); if (sOpera != -1) return "opera"; if (sIE != -1){ nIeVer = parseFloat(sUA.substr(sIE + 5)); if (nIeVer >= 6) return "ie6"; else if (nIeVer >= 5.5) return "ie55"; else if (nIeVer >= 5 ) return "ie5"; } if (sMoz != -1) return "moz"; return "other"; } BROWSER = browserDetect(); var MOZ = true; function fullscreen(_iMode){ if(_iMode == 1){ base.swfSize('mymovie', 'full'); }else{ base.swfSize('mymovie', 'init'); } }