仿bbs.csdn.net的广告如何做??? bbs.csdn.net 打开页面的时候,浏览器右下方会浮出一个广告宣传框。 点击关闭后就关掉 请问是怎么做的? 谢谢了。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> <input type="button" value="pop" onclick="floatDiv.show('test')"/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <div id="test" style="width:300px;height:200px;display:none;position:absolute;background:#c0c0c0;">sdfasdfasdfasdf<input onclick="floatDiv.hide()" type="button" value="hide"/></div> </BODY></HTML><SCRIPT LANGUAGE="JavaScript"> var floatDiv = function(){ var d = document,dd = d.documentElement,db = d.body,fd,sd,sdh, timer,timer2,time,step,mr = Math.round,isStrict = d.compatMode == "CSS1Compat"; return { show:function(id){ time = 10; if(!fd){ fd = d.body.appendChild(d.createElement('div')); sd = d.getElementById(id); fd.appendChild(sd); sd.style.cssText += ';display:block;position:absolute;left:0;'; sdh = sd.offsetHeight; fd.style.cssText = "overflow:hidden;position:absolute;bottom:0;right:0;width:"+sd.offsetWidth+"px;height:"+sdh+"px;"; } fd.style.display = 'block'; sd.style.bottom = "-"+sdh+'px'; step = sdh/55; timer = setInterval(function(){ if(time<0){ clearInterval(timer) }else{ sd.style.bottom = parseInt(sd.style.bottom) + mr(time*step)+'px' time -=1; } },10) function scroll(){ var st = isStrict?dd.scrollTop:db.scrollTop,c,dbh = isStrict?dd.clientHeight:db.clientHeight,t = 500; c = st - fd.offsetTop + (dbh-sdh); c!=0&&(fd.style.top = fd.offsetTop + Math.ceil(c/10) + 'px',t=10); timer2 = setTimeout(scroll,t) }; scroll(); }, hide:function(){ time = 10; clearTimeout(timer2); timer = setInterval(function(){ if(time<0){ clearInterval(timer); fd.style.display = 'none'; }else{ sd.style.bottom = parseInt(sd.style.bottom) - mr(time*step)+'px' time -=1; } },10) } } }()</SCRIPT> http://blog.csdn.net/wpabbs/archive/2008/05/21/2466297.aspx 怎么在javascript插入组件 全国省市县三级联动 选到县后显示邮编 不想用数据库 在线等候你们的帮忙 图片上传到服务器指定目录 求判断点在多边形内算法 ”用js控制“传入一个集合,然后迭代显示在div中 这个JS日期控件如何加个时间 请教:有没有办法实现,当点击一个图片链接时出现“嗒”的一声,也就是响一下。 高手进来。。帮我解开这段加密的js 400分给有比较好的字符串比较的算法的朋友, 现在论坛怎么都是些jquery和ext了? 在Jquery中给母板页中的控件赋值
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD> <BODY>
<input type="button" value="pop" onclick="floatDiv.show('test')"/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<div id="test" style="width:300px;height:200px;display:none;position:absolute;background:#c0c0c0;">sdfasdfasdfasdf<input onclick="floatDiv.hide()" type="button" value="hide"/></div>
</BODY>
</HTML>
<SCRIPT LANGUAGE="JavaScript">
var floatDiv = function(){
var d = document,dd = d.documentElement,db = d.body,fd,sd,sdh, timer,timer2,time,step,mr = Math.round,isStrict = d.compatMode == "CSS1Compat";
return {
show:function(id){
time = 10;
if(!fd){
fd = d.body.appendChild(d.createElement('div'));
sd = d.getElementById(id);
fd.appendChild(sd);
sd.style.cssText += ';display:block;position:absolute;left:0;';
sdh = sd.offsetHeight;
fd.style.cssText = "overflow:hidden;position:absolute;bottom:0;right:0;width:"+sd.offsetWidth+"px;height:"+sdh+"px;";
}
fd.style.display = 'block';
sd.style.bottom = "-"+sdh+'px';
step = sdh/55;
timer = setInterval(function(){
if(time<0){
clearInterval(timer)
}else{
sd.style.bottom = parseInt(sd.style.bottom) + mr(time*step)+'px'
time -=1;
}
},10)
function scroll(){
var st = isStrict?dd.scrollTop:db.scrollTop,c,dbh = isStrict?dd.clientHeight:db.clientHeight,t = 500;
c = st - fd.offsetTop + (dbh-sdh);
c!=0&&(fd.style.top = fd.offsetTop + Math.ceil(c/10) + 'px',t=10);
timer2 = setTimeout(scroll,t)
};
scroll();
},
hide:function(){
time = 10;
clearTimeout(timer2);
timer = setInterval(function(){
if(time<0){
clearInterval(timer);
fd.style.display = 'none';
}else{
sd.style.bottom = parseInt(sd.style.bottom) - mr(time*step)+'px'
time -=1;
}
},10)
}
}
}()
</SCRIPT>