您的位置:首页网页设计经验技巧 → 下拉的广告条

下拉的广告条

时间:2004/11/7 2:48:00来源:本站整理作者:蓝点我要评论(0)

<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="http://www.1studio.net/html/example/0113/2banner.gif" width=131 border=0></a><a href="close#"><img height=20 alt=Close src="http://www.1studio.net/html/example/0113/close.gif" 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="http://www.1studio.net/html/example/0113/banner.gif" width=320 border=0></a></div> <BODY bgcolor="#000000" onload=xs_pdEx();>

 

相关阅读 Windows错误代码大全 Windows错误代码查询激活windows有什么用Mac QQ和Windows QQ聊天记录怎么合并 Mac QQ和Windows QQ聊天记录Windows 10自动更新怎么关闭 如何关闭Windows 10自动更新windows 10 rs4快速预览版17017下载错误问题Win10秋季创意者更新16291更新了什么 win10 16291更新内容windows10秋季创意者更新时间 windows10秋季创意者更新内容kb3150513补丁更新了什么 Windows 10补丁kb3150513是什么

文章评论
发表评论

热门文章 Wordpress本地安装教程dx1.5如何设置二级域名

最新文章 hbuilder有哪些快捷键Wordpress本地安装教程 Wordpress本地安装教程expression web 4文档乱码解决方法dz 2.5“收藏本版”关闭小对话框无法关闭解在制作安装软件之前,您必须先将易语言存盘,

人气排行 如何使用multipart/form-data格式上传文件Photoshop PS图层混合模式详解(非常详细)ISAPI_Rewrite3使用教程网站里添加收藏和设为首页代码桌面快捷方式图标不见了C#获取执行程序所在的当前路径的方法详解(XMLHttpRequest)进行跨域请求方法如何用远程桌面连接进行传输文件