首页/javascript外包/javascript下沉广告代码|做网页下沉广告代码
<上一条:俞敏洪经典语录大全
下一条: 网页制作html中的rel,rev是什么? >
javascript下沉广告代码|做网页下沉广告代码
发布-xiaoming | 浏览量-
做网页下沉广告代码
复制内容到剪贴板
- <!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" />
- <title>北京做网页chinahegu.cn</title>
- <style>
- *{margin:0;padding:0;}
- body {height:2000px;}
- #menu {
- width:220px;
- height:420px;
- position:absolute;
- z-index:1000;
- background:url(IMG_116111-1.jpg) repeat-x top left;
- }
- #menu_h {
- float:right;
- }
- #menu_h img {
- cursor:pointer;
- }
- #menu_c {
- width:188px;
- height:398px;
- border:1px solid #666;
- background:#ecf6f5;
- margin:12px 0 0 5px;
- }
- #menu_c h2 {
- text-align:center;
- }
- </style>
- </head>
- <body>
- <div id="ads" style="width:900px;height:300px;background:#369;margin:0 auto;">asdfsdafasdf</div>
- <script type="text/javascript">
- var time = 300;
- var h = 0;
- function addCount()
- {
- if(time>0)
- {
- time--;
- hh = h+5;
- }
- else
- {
- return;
- }
- if(h>300) //高度
- {
- return;
- }
- document.getElementById("ads").style.display = "";
- document.getElementById("ads").style.height = h+"px";
- setTimeout("addCount()",30);
- }
- window.onload = function showAds()
- {
- addCount();
- setTimeout("noneAds()",7000); //停留时间自己调了
- }
- var T = 300;
- var N = 300; //高度
- function noneAds()
- {
- if(T>0)
- {
- T--;
- NN = N-5;
- }
- else
- {
- return;
- }
- if(N<0)
- {
- document.getElementById("ads").style.display = "none";
- return;
- }
- document.getElementById("ads").style.height = N+"px";
- setTimeout("noneAds()",30);
- }
- </script>
- </body>
- </html>
原文地址:http://www.35ui.cn/post/20110419870.html 标签:北京网站制作javascript培训班
上一条: 俞敏洪经典语录大全
下一条: 网页制作html中的rel,rev是什么?
或许你还对下面的文章感兴趣