新浪中用来显示flash的函数,格式化后大家可以用啊
sinaflash.js
复制代码 代码如下:
/**
* @author [sina]zhangping1@
* @version v1.1.3
* Date:2006-9-8 2006-12-15
*/
if(typeof(sina)!="object"){var sina={}}
sina.$=function(objId){if(!objId){throw new Error("sina.$(String objId)参数必须")}
if(document.getElementById){return eval('document.getElementById("'+objId+'")')}else if(document.layers){return eval("document.layers['"+objId+"']")}else{return eval('document.all.'+objId)}}
sinaFlash=function(C,v,x,V,c,X,i,O,I,l,o){var z=this;if(!document.createElement||!document.getElementById){return}
z.id=v?v:"";z.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";z.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+(c?c:"7")+",0,0,0";z.width=x;z.height=V;z.movie=C;z.bgcolor=X?X:null;z.quality=O?O:"high";z.src=z.movie;z.pluginspage="http://www.macromedia.com/go/getflashplayer";z.type="application/x-shockwave-flash";z.useExpressInstall=i?i:null;z.xir=(I)?I:window.location;z.redirectUrl=l?l:null;z.detectKey=o?o:null;z.escapeIs=false;z.objAttrs={};z.params={};z.flashVars=[];z.flashVarsStr="";z.embedAttrs={};z.forSetAttribute("id",z.id);z.objAttrs["classid"]=z.classid;z.forSetAttribute("codebase",z.codebase);z.forSetAttribute("width",z.width);z.forSetAttribute("height",z.height);z.forSetAttribute("movie",z.movie);z.forSetAttribute("quality",z.quality);z.forSetAttribute("pluginspage",z.pluginspage);z.forSetAttribute("type",z.type);z.forSetAttribute("bgcolor",z.bgcolor)}
sinaFlash.prototype={getFlashHtml:function(){var I=this,i='<object ';for(var l in I.objAttrs){i+=l+'="'+I.objAttrs[l]+'" '}
i+='>';for(var l in I.params){i+='<param name="'+l+'" value="'+I.params[l]+'" /> '}
if(I.flashVarsStr!=""){i+='<param name="FlashVars" value="'+I.flashVarsStr+'" /> '}
i+='<embed ';for(var l in I.embedAttrs){i+=l+'="'+I.embedAttrs[l]+'" '}
i+=' ></embed></object>';return i},forSetAttribute:function(I,i){var l=this;I=I.toLowerCase();switch(I){case "classid":break;case "pluginspage":l.embedAttrs["pluginspage"]=i;break;case "src":l.embedAttrs["src"]=i;l.params["movie"]=i;break;case "movie":l.params["movie"]=i;l.embedAttrs["src"]=i;break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":l.embedAttrs["type"]=i;break;case "codebase":l.objAttrs["codebase"]=i;break;case "width":l.objAttrs["width"]=i;l.embedAttrs["width"]=i;break;case "height":l.objAttrs["height"]=i;l.embedAttrs["height"]=i;break;case "align":l.objAttrs["align"]=i;l.embedAttrs["align"]=i;break;case "vspace":l.objAttrs["vspace"]=i;l.embedAttrs["vspace"]=i;break;case "hspace":l.objAttrs["hspace"]=i;l.embedAttrs["hspace"]=i;break;case "class":l.objAttrs["class"]=i;l.embedAttrs["class"]=i;break;case "title":l.objAttrs["title"]=i;break;case "accesskey":l.objAttrs["accesskey"]=i;break;case "name":l.objAttrs["name"]=i;l.embedAttrs["name"]=i;break;case "id":l.objAttrs["id"]=i;l.embedAttrs["name"]=i;break;case "tabindex":l.objAttrs["tabindex"]=i;break;default:l.params[I]=l.embedAttrs[I]=i}},forGetAttribute:function(i){var I=this;i=i.toLowerCase();if(I.objAttrs[i]!=undefined){return I.objAttrs[i]}else if(I.embedAttrs[i]!=undefined){return I.embedAttrs[i]}else if(I.embedAttrs!=undefined){return I.embedAttrs[i]}else{return null}},setAttribute:function(I,i){this.forSetAttribute(I,i)},getAttribute:function(i){return this.forGetAttribute(i)},addVariable:function(I,i){var l=this;if(l.escapeIs){I=escape(I);i=escape(i)}
if(l.flashVarsStr==""){l.flashVarsStr=I+"="+i}else{l.flashVarsStr+="&"+I+"="+i}
l.embedAttrs["FlashVars"]=l.flashVarsStr},getVariable:function(I){var o=this,i=o.flashVarsStr;if(o.escapeIs){I=escape(I)}
var l=new RegExp(I+"=([^\\&]*)(\\&?)","i").exec(i);if(o.escapeIs){return unescape(RegExp.$1)}
return RegExp.$1},addParam:function(I,i){this.forSetAttribute(I,i)},getParam:function(){return this.forGetAttribute(name)},write:function(i){var I=this;if(typeof i=="string"){sina.$(i).innerHTML=I.getFlashHtml()}else if(typeof i=="object"){i.innerHTML=I.getFlashHtml()}}} /**
* @author [sina]zhangping1@
* @version v1.1.3
* Date:2006-9-8 2006-12-15
*/
if(typeof(sina)!="object"){
var sina={
}
}
sina.$=function(objId){
if(!objId){
throw new Error("sina.$(String objId)参数必须")
}
if(document.getElementById){
return eval('document.getElementById("'+objId+'")')
} else if(document.layers){
return eval("document.layers['"+objId+"']")
} else{
return eval('document.all.'+objId)
}
}
sinaFlash=function(C,v,x,V,c,X,i,O,I,l,o){
var z=this;
if(!document.createElement||!document.getElementById){
return
}
z.id=v?v:"";
z.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
z.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+(c?c:"7")+",0,0,0";
z.width=x;
z.height=V;
z.movie=C;
z.bgcolor=X?X:null;
z.quality=O?O:"high";
z.src=z.movie;
z.pluginspage="http://www.macromedia.com/go/getflashplayer";
z.type="application/x-shockwave-flash";
z.useExpressInstall=i?i:null;
z.xir=(I)?I:window.location;
z.redirectUrl=l?l:null;
z.detectKey=o?o:null;
z.escapeIs=false;
z.objAttrs={
} ;
z.params={
} ;
z.flashVars=[];
z.flashVarsStr="";
z.embedAttrs={
} ;
z.forSetAttribute("id",z.id);
z.objAttrs["classid"]=z.classid;
z.forSetAttribute("codebase",z.codebase);
z.forSetAttribute("width",z.width);
z.forSetAttribute("height",z.height);
z.forSetAttribute("movie",z.movie);
z.forSetAttribute("quality",z.quality);
z.forSetAttribute("pluginspage",z.pluginspage);
z.forSetAttribute("type",z.type);
z.forSetAttribute("bgcolor",z.bgcolor)
}
sinaFlash.prototype={
getFlashHtml:function(){
var I=this,i='<object ';
for(var l in I.objAttrs){
i+=l+'="'+I.objAttrs[l]+'" '
}
i+='>';
for(var l in I.params){
i+='<param name="'+l+'" value="'+I.params[l]+'" /> '
}
if(I.flashVarsStr!=""){
i+='<param name="FlashVars" value="'+I.flashVarsStr+'" /> '
}
i+='<embed ';
for(var l in I.embedAttrs){
i+=l+'="'+I.embedAttrs[l]+'" '
}
i+=' ></embed></object>';
return i
} ,forSetAttribute:function(I,i){
var l=this;
I=I.toLowerCase();
switch(I){
case "classid":break;
case "pluginspage":l.embedAttrs["pluginspage"]=i;
break;
case "src":l.embedAttrs["src"]=i;
l.params["movie"]=i;
break;
case "movie":l.params["movie"]=i;
l.embedAttrs["src"]=i;
break;
case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":l.embedAttrs["type"]=i;
break;
case "codebase":l.objAttrs["codebase"]=i;
break;
case "width":l.objAttrs["width"]=i;
l.embedAttrs["width"]=i;
break;
case "height":l.objAttrs["height"]=i;
l.embedAttrs["height"]=i;
break;
case "align":l.objAttrs["align"]=i;
l.embedAttrs["align"]=i;
break;
case "vspace":l.objAttrs["vspace"]=i;
l.embedAttrs["vspace"]=i;
break;
case "hspace":l.objAttrs["hspace"]=i;
l.embedAttrs["hspace"]=i;
break;
case "class":l.objAttrs["class"]=i;
l.embedAttrs["class"]=i;
break;
case "title":l.objAttrs["title"]=i;
break;
case "accesskey":l.objAttrs["accesskey"]=i;
break;
case "name":l.objAttrs["name"]=i;
l.embedAttrs["name"]=i;
break;
case "id":l.objAttrs["id"]=i;
l.embedAttrs["name"]=i;
break;
case "tabindex":l.objAttrs["tabindex"]=i;
break;
default:l.params[I]=l.embedAttrs[I]=i
}
} ,forGetAttribute:function(i){
var I=this;
i=i.toLowerCase();
if(I.objAttrs[i]!=undefined){
return I.objAttrs[i]
} else if(I.embedAttrs[i]!=undefined){
return I.embedAttrs[i]
} else if(I.embedAttrs!=undefined){
return I.embedAttrs[i]
} else{
return null
}
} ,setAttribute:function(I,i){
this.forSetAttribute(I,i)
} ,getAttribute:function(i){
return this.forGetAttribute(i)
} ,addVariable:function(I,i){
var l=this;
if(l.escapeIs){
I=escape(I);
i=escape(i)
}
if(l.flashVarsStr==""){
l.flashVarsStr=I+"="+i
} else{
l.flashVarsStr+="&"+I+"="+i
}
l.embedAttrs["FlashVars"]=l.flashVarsStr
} ,getVariable:function(I){
var o=this,i=o.flashVarsStr;
if(o.escapeIs){
I=escape(I)
}
var l=new RegExp(I+"=([^\\&]*)(\\&?)","i").exec(i);
if(o.escapeIs){
return unescape(RegExp.$1)
}
return RegExp.$1
} ,addParam:function(I,i){
this.forSetAttribute(I,i)
} ,getParam:function(){
return this.forGetAttribute(name)
} ,write:function(i){
var I=this;
if(typeof i=="string"){
sina.$(i).innerHTML=I.getFlashHtml()
} else if(typeof i=="object"){
i.innerHTML=I.getFlashHtml()
}
}
}
调用方法:
复制代码 代码如下:
<div>
<!--ADS:begin=PDPS000000003139:{597CD25D-FAF8-405B-9164-01639EBFB760}--><!--01639EBFB760--><div id="flashcontent_01639EBFB760">不支持Flash</div>
<script type="text/javascript">
var objFlash = new sinaFlash("http://ad4.sina.com.cn/200703/28/86132_58590.swf", "", "585", "90", "7", "", false,"high");
objFlash.addParam("wmode", "opaque");
objFlash.addVariable("adlink", escape("http://bf.sina.com.cn/newbf/zt/07qycs.html"));
objFlash.write("flashcontent_01639EBFB760");
</script><!--$$ ae/2007-4-1 ~ 2007-4-1/A $--><!--ADS:end-->
</div>
<!-- 广告 begin -->
<div>
<!--新浪首页第三屏小通栏02开始-->
<!--ADS:begin=PDPS000000000794:{A5AB42A8-EFEB-46AE-A24F-97C36D34A728}--><!--97C36D34A728--><div id="flashcontent_97C36D34A728">不支持Flash</div>
<script type="text/javascript">
var objFlash = new sinaFlash("http://ad4.sina.com.cn/200704/02/86722_sina402news58550.swf", "", "585", "50", "7", "", false,"high");
objFlash.addParam("wmode", "opaque");
objFlash.write("flashcontent_97C36D34A728");
</script><!--$$ litong/2007-4-2 ~ 2007-4-6/B $--><!--ADS:end-->
<!--新浪首页第三屏小通栏02结束-->
</div>
<!-- 广告 end -->
sinaflash.js
复制代码 代码如下:
/**
* @author [sina]zhangping1@
* @version v1.1.3
* Date:2006-9-8 2006-12-15
*/
if(typeof(sina)!="object"){var sina={}}
sina.$=function(objId){if(!objId){throw new Error("sina.$(String objId)参数必须")}
if(document.getElementById){return eval('document.getElementById("'+objId+'")')}else if(document.layers){return eval("document.layers['"+objId+"']")}else{return eval('document.all.'+objId)}}
sinaFlash=function(C,v,x,V,c,X,i,O,I,l,o){var z=this;if(!document.createElement||!document.getElementById){return}
z.id=v?v:"";z.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";z.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+(c?c:"7")+",0,0,0";z.width=x;z.height=V;z.movie=C;z.bgcolor=X?X:null;z.quality=O?O:"high";z.src=z.movie;z.pluginspage="http://www.macromedia.com/go/getflashplayer";z.type="application/x-shockwave-flash";z.useExpressInstall=i?i:null;z.xir=(I)?I:window.location;z.redirectUrl=l?l:null;z.detectKey=o?o:null;z.escapeIs=false;z.objAttrs={};z.params={};z.flashVars=[];z.flashVarsStr="";z.embedAttrs={};z.forSetAttribute("id",z.id);z.objAttrs["classid"]=z.classid;z.forSetAttribute("codebase",z.codebase);z.forSetAttribute("width",z.width);z.forSetAttribute("height",z.height);z.forSetAttribute("movie",z.movie);z.forSetAttribute("quality",z.quality);z.forSetAttribute("pluginspage",z.pluginspage);z.forSetAttribute("type",z.type);z.forSetAttribute("bgcolor",z.bgcolor)}
sinaFlash.prototype={getFlashHtml:function(){var I=this,i='<object ';for(var l in I.objAttrs){i+=l+'="'+I.objAttrs[l]+'" '}
i+='>';for(var l in I.params){i+='<param name="'+l+'" value="'+I.params[l]+'" /> '}
if(I.flashVarsStr!=""){i+='<param name="FlashVars" value="'+I.flashVarsStr+'" /> '}
i+='<embed ';for(var l in I.embedAttrs){i+=l+'="'+I.embedAttrs[l]+'" '}
i+=' ></embed></object>';return i},forSetAttribute:function(I,i){var l=this;I=I.toLowerCase();switch(I){case "classid":break;case "pluginspage":l.embedAttrs["pluginspage"]=i;break;case "src":l.embedAttrs["src"]=i;l.params["movie"]=i;break;case "movie":l.params["movie"]=i;l.embedAttrs["src"]=i;break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":l.embedAttrs["type"]=i;break;case "codebase":l.objAttrs["codebase"]=i;break;case "width":l.objAttrs["width"]=i;l.embedAttrs["width"]=i;break;case "height":l.objAttrs["height"]=i;l.embedAttrs["height"]=i;break;case "align":l.objAttrs["align"]=i;l.embedAttrs["align"]=i;break;case "vspace":l.objAttrs["vspace"]=i;l.embedAttrs["vspace"]=i;break;case "hspace":l.objAttrs["hspace"]=i;l.embedAttrs["hspace"]=i;break;case "class":l.objAttrs["class"]=i;l.embedAttrs["class"]=i;break;case "title":l.objAttrs["title"]=i;break;case "accesskey":l.objAttrs["accesskey"]=i;break;case "name":l.objAttrs["name"]=i;l.embedAttrs["name"]=i;break;case "id":l.objAttrs["id"]=i;l.embedAttrs["name"]=i;break;case "tabindex":l.objAttrs["tabindex"]=i;break;default:l.params[I]=l.embedAttrs[I]=i}},forGetAttribute:function(i){var I=this;i=i.toLowerCase();if(I.objAttrs[i]!=undefined){return I.objAttrs[i]}else if(I.embedAttrs[i]!=undefined){return I.embedAttrs[i]}else if(I.embedAttrs!=undefined){return I.embedAttrs[i]}else{return null}},setAttribute:function(I,i){this.forSetAttribute(I,i)},getAttribute:function(i){return this.forGetAttribute(i)},addVariable:function(I,i){var l=this;if(l.escapeIs){I=escape(I);i=escape(i)}
if(l.flashVarsStr==""){l.flashVarsStr=I+"="+i}else{l.flashVarsStr+="&"+I+"="+i}
l.embedAttrs["FlashVars"]=l.flashVarsStr},getVariable:function(I){var o=this,i=o.flashVarsStr;if(o.escapeIs){I=escape(I)}
var l=new RegExp(I+"=([^\\&]*)(\\&?)","i").exec(i);if(o.escapeIs){return unescape(RegExp.$1)}
return RegExp.$1},addParam:function(I,i){this.forSetAttribute(I,i)},getParam:function(){return this.forGetAttribute(name)},write:function(i){var I=this;if(typeof i=="string"){sina.$(i).innerHTML=I.getFlashHtml()}else if(typeof i=="object"){i.innerHTML=I.getFlashHtml()}}} /**
* @author [sina]zhangping1@
* @version v1.1.3
* Date:2006-9-8 2006-12-15
*/
if(typeof(sina)!="object"){
var sina={
}
}
sina.$=function(objId){
if(!objId){
throw new Error("sina.$(String objId)参数必须")
}
if(document.getElementById){
return eval('document.getElementById("'+objId+'")')
} else if(document.layers){
return eval("document.layers['"+objId+"']")
} else{
return eval('document.all.'+objId)
}
}
sinaFlash=function(C,v,x,V,c,X,i,O,I,l,o){
var z=this;
if(!document.createElement||!document.getElementById){
return
}
z.id=v?v:"";
z.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
z.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+(c?c:"7")+",0,0,0";
z.width=x;
z.height=V;
z.movie=C;
z.bgcolor=X?X:null;
z.quality=O?O:"high";
z.src=z.movie;
z.pluginspage="http://www.macromedia.com/go/getflashplayer";
z.type="application/x-shockwave-flash";
z.useExpressInstall=i?i:null;
z.xir=(I)?I:window.location;
z.redirectUrl=l?l:null;
z.detectKey=o?o:null;
z.escapeIs=false;
z.objAttrs={
} ;
z.params={
} ;
z.flashVars=[];
z.flashVarsStr="";
z.embedAttrs={
} ;
z.forSetAttribute("id",z.id);
z.objAttrs["classid"]=z.classid;
z.forSetAttribute("codebase",z.codebase);
z.forSetAttribute("width",z.width);
z.forSetAttribute("height",z.height);
z.forSetAttribute("movie",z.movie);
z.forSetAttribute("quality",z.quality);
z.forSetAttribute("pluginspage",z.pluginspage);
z.forSetAttribute("type",z.type);
z.forSetAttribute("bgcolor",z.bgcolor)
}
sinaFlash.prototype={
getFlashHtml:function(){
var I=this,i='<object ';
for(var l in I.objAttrs){
i+=l+'="'+I.objAttrs[l]+'" '
}
i+='>';
for(var l in I.params){
i+='<param name="'+l+'" value="'+I.params[l]+'" /> '
}
if(I.flashVarsStr!=""){
i+='<param name="FlashVars" value="'+I.flashVarsStr+'" /> '
}
i+='<embed ';
for(var l in I.embedAttrs){
i+=l+'="'+I.embedAttrs[l]+'" '
}
i+=' ></embed></object>';
return i
} ,forSetAttribute:function(I,i){
var l=this;
I=I.toLowerCase();
switch(I){
case "classid":break;
case "pluginspage":l.embedAttrs["pluginspage"]=i;
break;
case "src":l.embedAttrs["src"]=i;
l.params["movie"]=i;
break;
case "movie":l.params["movie"]=i;
l.embedAttrs["src"]=i;
break;
case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":l.embedAttrs["type"]=i;
break;
case "codebase":l.objAttrs["codebase"]=i;
break;
case "width":l.objAttrs["width"]=i;
l.embedAttrs["width"]=i;
break;
case "height":l.objAttrs["height"]=i;
l.embedAttrs["height"]=i;
break;
case "align":l.objAttrs["align"]=i;
l.embedAttrs["align"]=i;
break;
case "vspace":l.objAttrs["vspace"]=i;
l.embedAttrs["vspace"]=i;
break;
case "hspace":l.objAttrs["hspace"]=i;
l.embedAttrs["hspace"]=i;
break;
case "class":l.objAttrs["class"]=i;
l.embedAttrs["class"]=i;
break;
case "title":l.objAttrs["title"]=i;
break;
case "accesskey":l.objAttrs["accesskey"]=i;
break;
case "name":l.objAttrs["name"]=i;
l.embedAttrs["name"]=i;
break;
case "id":l.objAttrs["id"]=i;
l.embedAttrs["name"]=i;
break;
case "tabindex":l.objAttrs["tabindex"]=i;
break;
default:l.params[I]=l.embedAttrs[I]=i
}
} ,forGetAttribute:function(i){
var I=this;
i=i.toLowerCase();
if(I.objAttrs[i]!=undefined){
return I.objAttrs[i]
} else if(I.embedAttrs[i]!=undefined){
return I.embedAttrs[i]
} else if(I.embedAttrs!=undefined){
return I.embedAttrs[i]
} else{
return null
}
} ,setAttribute:function(I,i){
this.forSetAttribute(I,i)
} ,getAttribute:function(i){
return this.forGetAttribute(i)
} ,addVariable:function(I,i){
var l=this;
if(l.escapeIs){
I=escape(I);
i=escape(i)
}
if(l.flashVarsStr==""){
l.flashVarsStr=I+"="+i
} else{
l.flashVarsStr+="&"+I+"="+i
}
l.embedAttrs["FlashVars"]=l.flashVarsStr
} ,getVariable:function(I){
var o=this,i=o.flashVarsStr;
if(o.escapeIs){
I=escape(I)
}
var l=new RegExp(I+"=([^\\&]*)(\\&?)","i").exec(i);
if(o.escapeIs){
return unescape(RegExp.$1)
}
return RegExp.$1
} ,addParam:function(I,i){
this.forSetAttribute(I,i)
} ,getParam:function(){
return this.forGetAttribute(name)
} ,write:function(i){
var I=this;
if(typeof i=="string"){
sina.$(i).innerHTML=I.getFlashHtml()
} else if(typeof i=="object"){
i.innerHTML=I.getFlashHtml()
}
}
}
调用方法:
复制代码 代码如下:
<div>
<!--ADS:begin=PDPS000000003139:{597CD25D-FAF8-405B-9164-01639EBFB760}--><!--01639EBFB760--><div id="flashcontent_01639EBFB760">不支持Flash</div>
<script type="text/javascript">
var objFlash = new sinaFlash("http://ad4.sina.com.cn/200703/28/86132_58590.swf", "", "585", "90", "7", "", false,"high");
objFlash.addParam("wmode", "opaque");
objFlash.addVariable("adlink", escape("http://bf.sina.com.cn/newbf/zt/07qycs.html"));
objFlash.write("flashcontent_01639EBFB760");
</script><!--$$ ae/2007-4-1 ~ 2007-4-1/A $--><!--ADS:end-->
</div>
<!-- 广告 begin -->
<div>
<!--新浪首页第三屏小通栏02开始-->
<!--ADS:begin=PDPS000000000794:{A5AB42A8-EFEB-46AE-A24F-97C36D34A728}--><!--97C36D34A728--><div id="flashcontent_97C36D34A728">不支持Flash</div>
<script type="text/javascript">
var objFlash = new sinaFlash("http://ad4.sina.com.cn/200704/02/86722_sina402news58550.swf", "", "585", "50", "7", "", false,"high");
objFlash.addParam("wmode", "opaque");
objFlash.write("flashcontent_97C36D34A728");
</script><!--$$ litong/2007-4-2 ~ 2007-4-6/B $--><!--ADS:end-->
<!--新浪首页第三屏小通栏02结束-->
</div>
<!-- 广告 end -->
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月30日
2024年11月30日
- 群星《人声1号[十大发烧情歌]》2CD[WAV分轨]
- 《郁可唯所有歌曲合集》[FLAC/MP3][6.2G]
- 郑秀文《SOUND OF MI》2024 7月新专辑[FLAC/MP3][1.1G]
- 费玉清《费玉清精粹》[FLAC][1G]
- 黑豹乐队-至爱极品顶级享受《豹行天下3CD》[WAV分轨]
- 音响系统测试碟《AbsoluteSamplerOnTheFly》[WAV+CUE]
- 一流的爵士乐《FirstClassJazz》ArtBlakey[正版原抓WAV+CUE]
- 杨千嬅《狼来了》[DSF][1.2G]
- 车载《旧情绵绵一路伴随》80后经典[FLAC/MP3][1G]
- 刀郎《身披彩衣的姑娘》[FLAC][1.4G]
- 张国荣《MissYouMix》美压版[正版原抓WAV+CUE]
- 长笛和吉他的浪漫音乐《OriginalRomanticMusicforFluteandGuitar》[WAV+CUE]
- 窦唯《八段锦》(上海音像)[WAV+CUE]
- DJ动力100%《堵在路上的解闷high曲》[FLAC/MP3][948M]
- 节奏炸裂《抖音最嗨 DJ 舞曲大合集》[FLAC/MP3][2G]