語法展示::  http://home.graffiti.net/sgasdgfads/


請用IE6.0或更新版本觀看語法特效展示

將以下程式碼複製,貼在<body>及</body>標籤之間。

<center>
<table width="410" height="30" border="0">
<tr><td id='anima' style="font-size:9pt;color:#1F1F1F;font-family:Tahoma">
</td></tr></table>
</center>
<script language="JavaScript">
<!--
text = "歡迎光臨紫蓮@翼,有空要多來逛逛喔,也請幫我點擊廣告賺點微薄的收入,歡迎光臨紫蓮@翼。"
word = text.split('.')
i = -1;          
j = 0;           
start = 0;     
scount = 0; 
function checkIt() {
with(document.all.anima) {
if(innerText.charAt(innerText.length-1) == "_") {
innerText = innerText.substring(0, innerText.length - 1);
return true;
}
else {
innerText = innerText + "_";
return false;
      }
   }
}
function blinkfor(count, timing) {
with(document.all.anima) {
if(start < count) {
if(checkIt()) {
start++;
}
mistake = 'blinkfor('+count+','+timing+')';
setTimeout('eval(mistake)', timing);
}
else {
start = 0;
i++;
call_It();
      }
   }
}
function mispell(offset,correction) {
with(document.all.anima) {
if(scount < offset) {
if(!checkIt()) {
innerText = innerText.substring(0, innerText.length-2) + "_";
scount++;
}
mistake = 'mispell(' + offset + ', "' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
if(correction == '' && scount == offset ) {
i = i - offset;
scount++;
}
if(offset > 0) {
if(checkIt()) {
innerText += correction.charAt(correction.length - offset) + "_";
offset--;
}
mistake = 'mispell(' + offset + ',"' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
scount = 0;
j++;
innerText = innerText.substring(0, innerText.length - 1);
call_It();
         }
      }
   }
}
function spellit(string) {
with(document.all.anima) {
if(i <= string.length) {
if(string.charAt(i) == '/') {
NumErrs = string.charAt(i + 1);
NewLets = string.substring(i + 2, i + NumErrs);
mispell(NumErrs,NewLets);
}
else if(i <= string.length - 1) {
i++;
innerText = string.substring(0,i) + "_";
mistake = 'spellit("' + string + '")';
setTimeout("eval(mistake)", 150);
}
else {
innerText = string.substring(0, i);
j++;
call_It();
         }
      }
   }
}
function call_It() {
with(document.all) {
if(i == -1){
blinkfor(4, 150);
}
else if(j <= word.length - 1) {
spellit(anima.innerText + " " + word[j]);
}
else {
blinkfor(100,230);
      }
   }
}
if(document.all) {
call_It();
}
-->
</script> 
 

<table width="410" height="30" border="0"> 中修改特效涵蓋的寬度、高度、及邊框粗細
<td id='anima' style="font-size:9pt;color:#1F1F1F;font-family:Tahoma"> 中修改跑馬燈文字的大小、顏色
自行修改跑馬燈的文字內容
setTimeout("eval(mistake)", 150); 中修改跑馬燈的速度

arrow
arrow
    全站熱搜

    uuiop6623 發表在 痞客邦 留言(0) 人氣()