ljl 发表于 2007-4-27 11:47:58

***状态栏***标题栏里的字符左右弹动

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果把如下代码加入到<body>区域中

<script>

var message = new array();

message = "welcome to you";
message = "jojoo.net";
message = "javascript jojoo";



var reps = 2;
var speed = 200;


var p = message.length;
var t = "";
var c = 0;
var mc = 0;
var s = 0;
var st = null;
if (reps < 1) reps = 1;
function dothething() {

t = message;
a();
}
function a() {
s++;
if (s > 8) { s = 1;}
// you can fiddle with the patterns here...
if (s == 1) { document.title = '||||||====||| '+t+' -----'; }
if (s == 2) { document.title = '|||=|||===||| '+t+' -----'; }
if (s == 3) { document.title = '|||==|||==||| '+t+' -----'; }
if (s == 4) { document.title = '|||===|||=||| '+t+' -----'; }
if (s == 5) { document.title = '|||====|||||| '+t+' -----'; }
if (s == 6) { document.title = '|||===|||=||| '+t+' -----'; }
if (s == 7) { document.title = '|||==|||==||| '+t+' -----'; }
if (s == 8) { document.title = '|||=|||===||| '+t+' -----'; }
if (c < (8 * reps)) {
st = settimeout("a()", speed);
c++;
}
else {
c = 0;
s = 0;
mc++;
if(mc > p - 1) mc = 0;
st = null;
dothething();
   }
}
dothething();
</script>
      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***状态栏***标题栏里的字符左右弹动