發新話題
打印

連結文字自動變色

連結文字自動變色

<script type="text/javascript"><!--
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];}
this.length = initArray.arguments.length;}
var colors = new initArray("#FF0000","#FF9900","#FFFF00","#00FF00","#00FFFF","#FF00FF");
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",1000);}
linkDance();
// --></script>

 

 

貼此語法後網頁內所有連結之文字會自動變換顏色

 

括號內之色碼可隨意更改

 

("#FF0000","#FF9900","#FFFF00","#00FF00","#00FFFF","#FF00FF");

 

 

 

如不能顯示語法效果可貼去本站語法測試板試看

 

 

語法測試板 2

我唔係人.........

TOP

複製上列語法



我唔係人.........

TOP