proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« Mozilla Firefox 的迁移与备份 profiles.ini | Main | 注意WAP客户端需要X-Up-Calling-Line-id的Vary头 »

August 10, 2005

JavaScript 与 marquee 滚屏

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/08/10/000740.html http://windtear.net/archives/2005/08/10/000740.html

marquee 俗称跑马灯
可以实现内容的滚动
<marquee direction="up"  scrollAmount=1 style="width:95;height:56"   onmouseover="javascript:this.stop();" onmouseout="javascript:this.start();">
滚动内容
</marquee>


JavaScript 更加强大
网站上飘来飘去的广告当年可谓风靡一时
一夜红遍中国的大江南北

如今也是实现各种效果的利器

滚屏的话
一般都会在load窗口的时候开始

window.onload=scrollscreen;

curlocation = 0;
function scrollscreen() {
  if (curlocation !=238 ) {
    curlocation++;
    scroll(0,curlocation);
    clearTimeout(timer);
    var timer = setTimeout("scrollscreen()",3);
    timer;
  }
}
本blog WWW

Posted by windtear at August 10, 2005 8:33 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.