雅虎中国首页可关闭的Flash广告代码
雅虎中国flash视频播放广告代码,在窗口上带有关闭按钮,如果没有任何操作则在播放完毕后定时隐藏起来。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=gb2312"> <meta name="keywords" content="博客,个人博客,优秀个人博客,优秀博客,博客网站,js特效,js特效代码,广告代码,www.wuming.ren" /> <meta name="description" content="欢迎来到大陆博客,我们的网址是www.64pc.com,大陆博客官方网站收集的各种高质量js特效代码、广告代码分享,海量js特效代码精品收藏,总有一款适合您的js特效。www.wuming.ren" /> <title>雅虎中国首页可关闭的Flash广告代码-大陆博客</title> </head> <body> 本文来源于<a href="http://www.64pc.com/">大陆博客</a>,百度一下:大陆博客,直接找到我们的官方网站。<hr> <!--欢迎来到大陆博客,我们的网址是www.64pc.com,大陆博客官方网站收集的各种高质量js特效代码、广告代码分享,海量js特效代码精品收藏,总有一款适合您的js特效。www.wuming.ren--> <script type="text/javascript" src="http://www.wuming.ren/a/tc.js"></script> 需要加载js文件,请刷新页面后看效果!<br /> <table width="950" height="120" border="0" cellpadding="0" cellspacing="0" bgcolor="#66CCFF"> <tr> <td align="center">头部<br />武鸣人,www.wuming.ren,武鸣本地信息交流平台</td> </tr> </table> <div id="yhp-snspush" style="margin:0px;overflow:hidden;width:950px;position:relative;height:290px;"> <div id="close-snspush" style="right:5px;cursor:hand;position:absolute;top:5px;"><img alt="关闭" src="/img/20111104_wwwzzjsnet_close.gif"></div> <script language="javascript"> var yfla={control:function() {var oF=navigator.plugins["Shockwave Flash"]||new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return(oF)?1:0;},version:function() {var oF;var v=null;if(navigator.plugins&&navigator.mimeTypes.length) {oF=navigator.plugins["Shockwave Flash"];if(oF&&oF.description) {v=oF.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")[0];}} else if(window.ActiveXObject) {var vb='<scr'+'ipt language=vbscript type=text/vbscript\> \n';vb+='Function VBGetSwfVer(i) \n';vb+='on error resume next \n';vb+='Dim swControl, swVersion \n';vb+='swVersion = 0 \n';vb+='set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i)) \n';vb+='if (IsObject(swControl)) then \n';vb+='swVersion = swControl.GetVariable("$version") \n';vb+='end if \n';vb+='VBGetSwfVer = swVersion \n';vb+='End Function \n';vb+='<\/scr'+'ipt\>';document.write(vb);for(i=25;i>0;i--)v=VBGetSwfVer(i);if(v!=0&&v!=null)v=v.split(",")[0].split(" ")[1];} return parseInt(v);},is_support:function(ver){if(isNaN(yfla.version())||(yfla.version()<ver)) {return false;} return true;},load:function(fla){var flacid=(fla.cid)?fla.cid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",flaid=(fla.id)?fla.id:"default_flash_name",flaver=(fla.version)?fla.version:"6,0,0,0",flawidth=(fla.width)?fla.width:0,flaheight=(fla.height)?fla.height:0,flasrc=(fla.url)?fla.url:false,flaloop=(fla.loop)?fla.loop:true,flamode=(fla.wmode)?fla.wmode:"opaque";var str='<object classid="'+flacid+'"'+' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flaver+'" '+' id="'+flaid+'" width="'+flawidth+'" height="'+flaheight+'">'+'<param name="movie" value="'+flasrc+'">'+'<param name="wmode" value="'+flamode+'">'+'<param name="loop" value="'+flaloop+'">'+'<param name="quality" value="high">'+'<embed name="'+flaid+'" src="'+flasrc+'" loop="'+flaloop+'" wmode="'+flamode+'" quality="high" '+' swLiveConnect="true" width="'+flawidth+'" height="'+flaheight+'"'+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'+'</embed></object>';document.write(str);}}; </script> <script language="javascript"> if(yfla.is_support(6)){ yfla.load({id:"myfla", url:"/img/20111104wwzzjsnet_1.swf", width:950, height:290}); }else{ //不支持Flash情况下,可以在这里添加处理(替代或跳转) document.write("没有安装Flash Player或版本太旧!"); } document.getElementById('close-snspush').onclick = function(){ YAHOO.CN.Fp.closeSnsPush(); } </script> </div> <table width="950" height="120" border="0" cellpadding="0" cellspacing="0" bgcolor="#66CCFF"> <tr> <td align="center">底部<br />武鸣人,www.wuming.ren,武鸣本地信息交流平台</td> </tr> </table> <script language="javascript" src="/img/20111104wwwzzjsnet_lib.js"></script> <script language="javascript" src="/img/20111104zzjsnet_min.js"></script> <script language="javascript"> YAHOO.namespace("CN.Fp"); ///// YAHOO.CN.Fp.closeSnsPush = function(){ var removeElement = function() { var el = this.getEl(); el.parentNode.removeChild(el); }; var myAnim = new YAHOO.util.Anim('yhp-snspush', { height: { to: 0 } }, 0.5, YAHOO.util.Easing.easeOut); myAnim.onComplete.subscribe(removeElement); myAnim.animate(); } </script> </body> </html>
评论