求一个广告特效代码~~~ http://community.csdn.net/Expert/topic/3749/3749114.xml?temp=.7634088 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><div id="g_xx" style="position:absolute; width:1024px; height:500px; z-index:1; left: 0px; top: 0px; border: 1px none #000000;" align=center> <div align="center"><font style='font-size:200px;' color=#ff0000>广告位</font></div></div><script>top_t = -500; //当前广告条距离顶部的最小位置top_d = 0; //当前广告条距离顶部的最大位置start_d();function start_d() //广告下滚控制函数{ top_t += 20; document.all.g_xx.style.top = top_t; if (top_t < top_d){ window.setTimeout("start_d()", 50); } else { window.setTimeout("start_u()", 3000); }}function start_u() //广告上滚控制函数{ top_t -= 20; document.all.g_xx.style.top = top_t; if (top_t > -500){ window.setTimeout("start_u()", 50); }}</script></body></html> 也就是这个的效果:http://blog.csdn.net/manyou 关于JS的COOKIES跨域,domain和path设置的问题 求助:如何对源文件加密? 就这点分了。问题盼解答。。。 写了一段定时读写数据库的代码,可是总是第一次成功。。 第二次就不执行了,请各位看看,在线等 怎么点击一个链接文字(add)后.链接文字变为(ok). 背景拉伸问题 如何让文本框的默认值以2004-04-15的格式显示当前的日期? 日期验证!!! Replace问题,请教高手! 验证输入是否是数字的函数如何写? 遍历XML节点树 为啥不显示呢??奇怪哦 网页刷新,让它显示下一副图片的问题
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<div id="g_xx" style="position:absolute; width:1024px; height:500px; z-index:1; left: 0px; top: 0px; border: 1px none #000000;" align=center>
<div align="center"><font style='font-size:200px;' color=#ff0000>广告位</font></div>
</div>
<script>
top_t = -500; //当前广告条距离顶部的最小位置
top_d = 0; //当前广告条距离顶部的最大位置
start_d();
function start_d() //广告下滚控制函数
{
top_t += 20;
document.all.g_xx.style.top = top_t;
if (top_t < top_d){
window.setTimeout("start_d()", 50);
} else {
window.setTimeout("start_u()", 3000);
}
}
function start_u() //广告上滚控制函数
{
top_t -= 20;
document.all.g_xx.style.top = top_t;
if (top_t > -500){
window.setTimeout("start_u()", 50);
}
}
</script>
</body>
</html>
http://blog.csdn.net/manyou