动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
   网页设计 → 阅读文章

 下拉的广告条

作者:佚名 来源:中国站长学院 
阅读 2219 人次 , 2006-2-15 14:35:00 

<script language=javascript>
var xs_bv=0;
var xs_pTop=-137;
var xs_pHeight=210;
var xs_updown=1;
var xs_endpt=0;
var xs_ranonce=0;
var xs_pDivSeen=0;
var xs_pTuck=0;
var ua=navigator.userAgent.toLowerCase()
function xsGetCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function xsGetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return xsGetCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; }
return null;
}
function xsSetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
var xs_exp = new Date(); xs_exp.setTime(xs_exp.getTime()+(10*60*1000));
if ( (ua.indexOf("opera")==-1)&&((ua.indexOf("msie")!=-1)&&(ua.indexOf("windows")!=-1))
((ua.indexOf("msie 5")!=-1)&&(ua.indexOf("mac")!=-1)) ) {xs_bv=1}
function xs_pdEx(){
var xs_popval = xsGetCookie('seenexp');
if ((xs_popval == null)
(xs_popval != "5")) {
xs_popval=5;
xsSetCookie('seenexp', xs_popval, xs_exp, "/","1studio.net");
var xs_ctest = (xsGetCookie('seenexp')=="5");
}
if((xs_bv)&&(!xs_ranonce)&&(xs_ctest!=null)){
// if((xs_bv)&&(!xs_ranonce)){
xs_pDiv2.style.left=xs_pDiv.style.left=((document.body.offsetWidth/2)-160)
xs_pd();
}
else{
if(xs_pTuck == 1){
if (xs_pDivSeen != 1){
xs_pDiv.style.clip="rect(0,320,210,0)";
xs_pDiv.style.display="";
xs_pDiv.style.top=31;
}
xs_endpt=(document.body.offsetWidth/2)-160;
xs_tuck();
}
}
}
function xs_pd(){
xs_ranonce=1;
if (((xs_pHeight<210)&&(xs_updown==0))
((xs_pHeight>3)&&(xs_updown==1))) {
if(xs_pHeight==210){xs_pDiv.style.display=""}
(xs_updown==0)?xs_pHeight+=3:xs_pHeight-=3;
(xs_updown==0)?xs_pTop-=3:xs_pTop+=3;
xs_pDiv.style.clip="rect(" + xs_pHeight + ",320,210,0)";
xs_pDiv.style.top=xs_pTop;
setTimeout("xs_pd();",20);
}
else{
if (xs_updown==1){
xs_pDiv.style.clip="rect(0,320,210,0)";
xs_pDiv.style.top=73;
xs_updown=0;
xs_pDiv2.style.display='';
setTimeout("xs_pd();",4500);
}
else{
xs_pDiv.style.display='none';
xs_pDiv2.style.height=10;
xs_pDivSeen = 1;
xs_endpt=(document.body.offsetWidth/2)-160;
xs_tuck();
}
}
}
function xs_tuck(){
if(xs_endpt<(document.body.offsetWidth-355)){
xs_endpt+=5;
xs_pDiv2.style.left=xs_endpt;
setTimeout("xs_tuck();",20);
}
else{xs_pTuck = 1}
}
</script>
<div id=xs_pDiv2
style="DISPLAY: none; LEFT: 240px; WIDTH: 320px; POSITION: absolute; TOP: 73px; HEIGHT: 210px; TEXT-ALIGN: right"><nobr><a
href="http://www.1studio.net"><img height=20 alt="爱玩它免费试用" src="" width=19 border=0></a></nobr></div>
<div id=xs_pDiv style="DISPLAY: none; LEFT: 240px; WIDTH: 320px; CLIP: rect(0px 320px 0px 0px); POSITION: absolute; TOP: 73px; HEIGHT: 210px; TEXT-ALIGN: right"><a href="
http://www.1studio.net"><img height=210 alt="爱玩它免费试用" src="   

 
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:设计模式简介(二)——Observer
· 下一篇:自制王码五笔字型输入法安装包
· 重构、标准、布局
· Javascript实例教程(21-11)
· HTML标签详解(5)
· CSS制作11种风格不同的特效文字
· 怎样使用AJAX进行应用程序开发


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077