<HTML> <Head> <title>Automatically change the color of the text link</title> <SCRIPTLANGUAGE= "JavaScript"> <!--BeginfunctionInitarray () { for (varI= 0; I<initArray.arguments.length; I++) { This[i]=Initarray.arguments[i]; } This. Length=initArray.arguments.length; } varColors= NewInitarray ("Red", "Blue", "Green", "Purple", "Black", "Tan", "Yellow", "Lime", "Coral", "Palegreen", "Silver", "Gold", "Red"); Delay= .5; //secondsLink= 0; Vlink= 0; functionlinkdance () {link=(Link+1)%colors.length; Vlink=(Vlink+1)%colors.length; Document.linkcolor=Colors[link]; Document.vlinkcolor=Colors[vlink]; SetTimeout ("linkdance ()", Delay* +); } linkdance (); //End -To </Script> </Head> <Body> <Li><ahref= "http://www.sjzkeda.com/">Meter Controller</a></Li> <Li><ahref= "http://www.sjzpcmm.com/"> Shijiazhuang Seedlings</a></Li> <Li><ahref= "http://www.chenxuzl.com/"> Shijiazhuang Flowers</a></Li> <Li><ahref= "http://www.caopingzhixiao.com//"> Turf Base</a></Li> </Body> </HTML>
Automatically change the color of the text link