JS文字抖动特效代码 -
.let {
COLOR: white; FILTER: Shadow (Color="#ff0000", Direction="135")wave(Add="0", Phase="4", Freq="9", LightStrength="20", Strength="1"); FONT-FAMILY: Verdana; FONT-WEIGHT: bold; WIDTH: 500px
}
var regel = 0;
var size = 20;
var delay = 1200;
var speed = 20;
var step = 10;
var sent = new Array()
{
sent[0] = "精品网站代码";
sent[1] = "";
sent[2] = "一个有质量的代码下载站";
sent[3] = "欢迎经常来转转";
sent[4] = "欢迎发布代码";
sent[5] = "谢谢你的支持";
}
sent[sent.length] = sent[0];var veran = 0;var num = 0;var x = 0;//Don't change
function moto(){output = "";for(letter = 0;letter
if(veran == letter){if(x==0){num=num+step;}else{num=num-step;}gr = size-num;
if(gr < 1){x=1;gr=1;}if(gr>size)gr=size;
output += ""+sent[regel+x].substring(letter, letter+1)+"";
if(num < 0 && x==1){veran++;x=0;}}else{if(veran > letter){
output += ""+sent[regel+1].substring(letter, letter+1)+"";
}else{output += ""+sent[regel].substring(letter, letter+1)+"";}}}
return output;}function startmot(){if(regel==sent.length-1)regel=0;balk.innerHTML = moto();
if(veran==sent[regel+1].length){regel++;veran = 0;setTimeout("startmot()", delay);}else{
setTimeout("startmot()", speed);}}
οnclick='location=""' style="CURSOR: hand"
width=498>
网页代码站 - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!