当前位置: 首页 > 图文教程 > 网络编程 > Javascript > FLASH 广告之外的链接

Javascript
JavaScript入门教程 Cookies
IE8 浏览器Cookie的处理
JS 强制设为首页的代码
JS之日历实践附实现代码
javascript onkeydown,onkeyup,onkeypress,onclick,ondblclick
JAVASCRIPT keycode总结
javascript 学习之旅 (1)
javascript 学习之旅 (2)
javascript 学习之旅 (3)
[Web]防止用户复制页面内容和另存页面的方法
让网页根据不同IE版本显示不同的内容
让input不可点击的另一种方法
fckeditor 获取文本框值的实现代码
jquery插件jbox使用iframe关闭问题
js获取提交的字符串的字节数
JS IE和FF兼容性问题汇总
js函数使用技巧之 setTimeout(function(){},0)
javascript 模拟select下拉列表特效
js 静态HTML表格排序功能实现
JavaScript 克隆数组最简单的方法

Javascript 中的 FLASH 广告之外的链接


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 242 ::
收藏到网摘: n/a

FLASH 广告外部链接实现代码
复制代码 代码如下:

function cf(flashsrc,flashwidth,flashheight,flashlink,br){
document.write("<table width="+flashwidth+" height="+flashheight+" border=0 cellpadding=0 cellspacing=0><tr><td>");
document.write("<div style=\"position:relative\">");
document.write("<embed style=\"position:absolute;z-index:0\" src="+flashsrc+" quality=\"high\" width="+flashwidth+" height="+flashheight+" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"opaque\"></embed>");
document.write("<div style=\"background:white;filter:alpha(opacity=0);opacity:0;position: relative;z-index:10;left:0pt;top:0pt;width:"+flashwidth+";height:"+flashheight+"px;\">");
document.write("<a href="+flashlink+" target=\"_blank\" style=\"cursor:pointer;display:block;width:"+flashwidth+";height:"+flashheight+"px;\"></a>");
document.write("</div>");
document.write("</div>");
document.write("</td></tr></table>");
if (br=="1") {
document.write("<br>");
}
}