Background Transform
<script language= "JavaScript" > <!--r=255; g=50; b=50; flag=0; T=new Array; O=new Array; D=new Array; function Hex (a,c) {T[a]=math.floor (C/16) o[a]=c%16 switch (t[a)) {case 10:t[a]= ' a '; Break Case 11:t[a]= ' B '; Break Case 12:t[a]= ' C '; Break Case 13:t[a]= ' D '; Break Case 14:t[a]= ' E '; Break Case 15:t[a]= ' F '; Break Default:break; Switch (O[a]) {case 10:o[a]= ' a '; Break Case 11:o[a]= ' B '; Break Case 12:o[a]= ' C '; Break Case 13:o[a]= ' D '; Break Case 14:o[a]= ' E '; Break Case 15:o[a]= ' F '; Break Default:break; }} function ran (a,c) {if (Math.random () >2/3| | c==0) &&c<255) {C + + d[a]=2; } else {if (Math.random () <=1/2| | c==255) &&c>0) {c--d[a]=1; else d[a]=0; Return C} function Do_it (a,c) {if (d[a]==2&&c<255) | | c==0) {C + + d[a]=2} else if (d[a]==1&&c>0) | | c==255) {c--; D[a]=1; } if (a==3) {if (d[1]==0&&d[2]==0&&d[3]==0) Flag=1} return C} function disco () {if (flag==0) {R=ran (1, R); G=ran (2, g); B=ran (3, B); Hex (1,r) Hex (2,g) Hex (3,b) document.bgcolor= "#" +t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag=50} else {r=do_it (1, R) g=do _it (2,g) b=do_it (3,b) hex (1,r) Hex (2,g) Hex (3,b) document.bgcolor= "#" +t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag--} if (d Ocument.all) settimeout (' Disco () ', "Disco ()//--> </script>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
text color gradient (no splash screen)
<script language= "JavaScript" > <!--//you can assign the initial color of the background here r=255; g=0; b=0; flag=0; T=new Array; O=new Array; D=new Array; function Hex (a,c) {T[a]=math.floor (C/16) o[a]=c%16 switch (t[a)) {case 10:t[a]= ' a '; Break Case 11:t[a]= ' B '; Break Case 12:t[a]= ' C '; Break Case 13:t[a]= ' D '; Break Case 14:t[a]= ' E '; Break Case 15:t[a]= ' F '; Break Default:break; Switch (O[a]) {case 10:o[a]= ' a '; Break Case 11:o[a]= ' B '; Break Case 12:o[a]= ' C '; Break Case 13:o[a]= ' D '; Break Case 14:o[a]= ' E '; Break Case 15:o[a]= ' F '; Break Default:break; }} function ran (a,c) {if (Math.random () >2/3| | c==0) &&c<255) {C + + d[a]=2; } else {if (Math.random () <=1/2| | c==255) &&c>0) {c--d[a]=1; else d[a]=0; Return C} function Do_it (a,c) {if (d[a]==2&&c<255) | | c==0) {C + + d[a]=2} else if (d[a]==1&&c>0) | | C==255) {c--; D[a]=1; } if (a==3) {if (d[1]==0&&d[2]==0&&d[3]==0) flag=1} return C} function disco () {if (flag==0) {R=ran (1, R); G=ran (2, g); B=ran (3, B); Hex (1,r) Hex (2,g) Hex (3,b) document.fgcolor= "#" +t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag=50} else {r=do_it (1, R) g=do _it (2,g) b=do_it (3,b) hex (1,r) Hex (2,g) Hex (3,b) document.fgcolor= "#" +t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag--} if (d Ocument.all) settimeout (' Disco () ', 0)} disco ()//--> </script> <body> text color gradient (no splash screen)
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
<script language=javascript> function wh_10to16 (n) {var a = new Array (16); a[0]= "0"; a[1]= "1"; a[2]= "2"; a[3]= "3"; a[4]= "4"; a[5]= "5"; a[6]= "6"; a[7]= "7"; a[8]= "8"; a[9]= "9"; a[10]= "a"; a[11]= "B"; A[12]= "C"; a[13]= "D"; a[14]= "E"; a[15]= "F"; Return A[parseint (N/16)]+a[n%16]} function Wh_transbgmakecolor (r,g,b) {return wh_10to16 (R) +wh_10to16 (g) +wh_10to16 (b ); function Wh_transbggetcolorinc (R1,R2) {if (R1 < R2) return 1; else if (R1 > R2) return-1 or else return 0; function Wh_changebg () {var r = Wh_transbgr1; var g = WH_TRANSBGG1; var B = wh_transbgb1; Wh_transbgr1 + = Wh_transbggetcolorinc (WH_TRANSBGR1,WH_TRANSBGR2) *wh_transbgspeed; WH_TRANSBGG1 + = Wh_transbggetcolorinc (wh_transbgg1,wh_transbgg2) *wh_transbgspeed; WH_TRANSBGB1 + = Wh_transbggetcolorinc (WH_TRANSBGB1,WH_TRANSBGB2) *wh_transbgspeed; if ((R-WH_TRANSBGR2) * (WH_TRANSBGR1-WH_TRANSBGR2) <=0) wh_transbgr1 = WH_TRANSBGR2; if ((G-WH_TRANSBGG2) * (WH_TRANSBGG1-WH_TRANSBGG2) <=0) wh_transbgG1 = WH_TRANSBGG2; if ((B-WH_TRANSBGB2) * (WH_TRANSBGB1-WH_TRANSBGB2) <=0) wh_transbgb1 = WH_TRANSBGB2; Document.bgcolor=wh_transbgmakecolor (Wh_transbgr1, WH_TRANSBGG1, WH_TRANSBGB1); if (wh_transbgr1==wh_transbgr2 && wh_transbgg1==wh_transbgg2 && wh_transbgb1==wh_transbgb2) {if (+ + Wh_transbgindex) >= wh_transbgtotal-1) {if (!wh_transbgloop && wh_transbgcount==1) return; wh_transbgcount++; wh_transbgindex=0; } wh_transbgr1 =wh_transbgcolorsr[wh_transbgindex]; WH_TRANSBGG1 =wh_transbgcolorsg[wh_transbgindex]; WH_TRANSBGB1 =wh_transbgcolorsb[wh_transbgindex]; WH_TRANSBGR2 =wh_transbgcolorsr[wh_transbgindex+1]; Wh_transbgg2 =wh_transbgcolorsg[wh_transbgindex+1]; Wh_transbgb2 =wh_transbgcolorsb[wh_transbgindex+1]; } settimeout ("Wh_changebg ()", 1); } wh_transbgr1=0; wh_transbgg1=0; wh_transbgb1=0; wh_transbgr2=0; wh_transbgg2=0; wh_transbgb2=0; wh_transbgspeed=1; Wh_Transbgloop=true; wh_transbgtotal=4; Wh_transbgindex =wh_transbgtotal-1; WH_TRANSBGCOLORSR = new Array (wh_transbgtotal); WH_TRANSBGCOLORSG = new Array (wh_transbgtotal); WH_TRANSBGCOLORSB = new Array (wh_transbgtotal); wh_transbgcolorsr[0]=255; wh_transbgcolorsg[0]=240; wh_transbgcolorsb[0]=230; wh_transbgcolorsr[1]=230; wh_transbgcolorsg[1]=255; wh_transbgcolorsb[1]=240; wh_transbgcolorsr[2]=240; wh_transbgcolorsg[2]=230; wh_transbgcolorsb[2]=255; wh_transbgcolorsr[3]=255; wh_transbgcolorsg[3]=240; wh_transbgcolorsb[3]=230; wh_transbgcount=0; WH_CHANGEBG (); </SCRIPT>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]