网页两侧flash广告代码
来源:互联网 发布:js数字补0 编辑:程序博客网 时间:2024/04/30 04:53
<!--网页两侧flash广告代码-->
<div id="couplet_left" style="position: absolute;visibility:hidden;z-index:1">
<embed src='FLASH的URL' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="80" height="240" wmode="opaque"></embed><table cellspacing="0" cellpadding="0" width="80"
style='font-size:10px;color:#000000'><tr style="background-color:White;"><td style="width:0px;"></td><td style="CURSOR:hand; width:30px;" onclick="closeflash()">关闭</td>
</tr></table>
</div>
<div id="couplet_right" style="position: absolute;visibility:hidden;z-index:1">
<embed src='FLASH的URL' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="80" height="240" wmode="opaque"></embed><table cellspacing="0" cellpadding="0" width="80"
style='font-size:10px;color:#000000'><tr style="background-color:White;"><td style="width:50px;"></td><td style="CURSOR:hand; width:20px;" onclick="closeflash()">关闭</td>
</tr></table></div>
<script type="text/javascript">
couplet_left.style.visibility='hidden';
couplet_right.style.visibility='hidden';
</script>
<script type="text/javascript">
var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("Opera");
function doCouplet(){
if((document.body.offsetWidth>800) && MSIE!=-1 && OPER==-1){
couplet_left.style.visibility='visible';
couplet_right.style.visibility='visible';
couplet_left.style.top=100;
couplet_left.style.left=5;
couplet_right.style.top=100;
couplet_right.style.right=5;
}
}
function closeflash()
{
couplet_left.style.visibility='hidden';
couplet_right.style.visibility='hidden';
}
try{
aryADSeq.push("doCouplet()");
}catch(e){
doCouplet();
}
lastScrollX=0;
function heartBeat0()
{
diffY=document.documentElement.scrollTop;
percent=.1*(diffY-lastScrollX);
if(percent>0)
percent=Math.ceil(percent);
else
percent=Math.floor(percent);
document.all.couplet_left.style.pixelTop+=percent;
lastScrollX=lastScrollX+percent;
}
window.setInterval("heartBeat0()",1);
lastScrollY=0;
function heartBeat1()
{
diffY=document.documentElement.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)
percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.couplet_right.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat1()",1);
</script>
- 网页两侧flash广告代码
- 网页两侧广告代码
- 浮动广告代码在网页两侧
- 网页两侧悬挂广告JS代码
- 网页两侧浮动广告
- 两侧浮动广告代码
- 两侧翻牌广告代码
- 标准网页两侧浮动广告代码,支持FF及IE
- flash两侧代码!
- 左右两侧浮动广告代码
- 左右两侧浮动广告代码
- JavaScript 网页两侧对联浮动广告
- javascript的网页两侧浮动广告
- JavaScript 网页两侧对联浮动广告
- 门户FLASH网页广告代码全面解析
- 页面两侧对联广告代码效果
- JS的实现两侧广告的代码
- javascript 页面两侧浮动广告代码
- 在JSF中实现分页(一)
- ASP.NET 缓存_ASP.NET 缓存中的新增功能
- 学习Asp.Net经常会用到的函数集
- C#入门 类的方法
- JS 操作IE游览器常用函数使用说明
- 网页两侧flash广告代码
- asp.net中生成、读取Rss
- TWebBowser 使用技巧
- 正则表达式
- VC++下使用ADO编写数据库程序
- WebBrowser、MSHTML在Delphi中的使用
- 汇编中参数的传递和堆栈修正
- 自己动手编写Web服务工具[执行]
- ie7+ie7pro才是完美!