您的位置:首页 > 编程语言

一个首页顶部图片(Flash)自动下拉收缩的广告代码

2009-01-20 10:47 225 查看
在HTML页面的<head></head>中加入下面的javascript脚本:

Code

<!-- 下拉大幅广告 Start -->

<div id="ads" style="margin:auto; display:none; width:100%; top:0px; height:0px; position:relative; overflow:hidden; text-align:center;">

<center>

<!-- 此处就是要显示的图片(或Flash) -->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="960" height="330">

<param name="movie" value="/images/chunjie.swf">

<param name="quality" value="high">

<param name="wmode" value="transparent">

<embed src="/images/chunjie.swf" width="960" height="330" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>

</object>

</center><div id="close" style="position:absolute; right:50px; bottom:20px; cursor:hand;" >

<img src='ad/img/close.gif' onClick='document.getElementById("ads").style.display = "none";document.getElementById("close").style.display = "none"' width='74' height='26' border='0' vspace='3' alt='关闭广告' /></div></div>

<!-- 下拉大幅广告 End -->
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: