htlmkodes Admin
Mesaj Sayısı : 223 Rep Puanı : 5 Kayıt tarihi : 10/06/09 Yaş : 31 Nerden : İstanbul
| Konu: Dalgalı link renkleri siz belirleyin kodu Ptsi Haz. 15, 2009 10:36 pm | |
| - Kod:
-
<font face="Verdana"><h2><center><a href="http://www.linkadi.com" target="_blank"><div id="colorsh" style="cursor:hand" ></div></a></center></h2></font> <script>
background_color= "#187cbe" // alttaki renk text_color= "000066" // üste gelecek renk message= "FaLoG.Tr.Gg" // mesajınız
// no need to edit below this line / buradan aşağısına dokunmayın mesk=new Array(); mesk[10]="A"; mesk[11]="B"; mesk[12]="C"; mesk[13]="D"; mesk[14]="E"; mesk[15]="F"; A=10; B=11; C=12; D=13; E=14; F=15; let="ABCDEF";
function mes(num) { if(let.indexOf(num) != -1) { return eval(num) } else { if(num < 10) { return eval(num) } else { return mesk[num] } } }
function color(begin,einde,stappen,stap) { hh1=(mes(begin.charAt(0))*16)+mes(begin.charAt(1)); hh2=(mes(begin.charAt(2))*16)+mes(begin.charAt(3)); hh3=(mes(begin.charAt(4))*16)+mes(begin.charAt(5)); pp1=(mes(einde.charAt(0))*16)+mes(einde.charAt(1)); pp2=(mes(einde.charAt(2))*16)+mes(einde.charAt(3)); pp3=(mes(einde.charAt(4))*16)+mes(einde.charAt(5)); if(hh1 < pp1) { ff1=hh1+Math.floor((pp1-hh1)/stappen*stap); ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'"); } else { ff1=hh1-Math.floor((hh1-pp1)/stappen*stap); ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'"); } if(hh2 < pp2) { ff2=hh2+Math.floor((pp2-hh2)/stappen*stap); ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'"); } else { ff2=hh2-Math.floor((hh2-pp2)/stappen*stap); ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'"); } if(hh3 < pp3) { ff3=hh3+Math.floor((pp3-hh3)/stappen*stap); ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'"); } else { ff3=hh3-Math.floor((hh3-pp3)/stappen*stap); ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'"); } return ff1+ff2+ff3; }
mesh=new Array(); num3=0; num4=0; txt="";
function shape() { colorsh.innerHTML="<font color='#"+background_color+"'>"+message+"<\/font>"; for(i=0;i != message.length;i++) { mesh[i]=background_color; } for(i=0;i != message.length;i++) { mesh[i+message.length]=color(background_color,text_color,message.length,i); } for(i=(message.length*2);i != (message.length*3);i++) { mesh[i]=text_color } shape2(); }
function shape2() { for(i=0;i != message.length;i++) { txt=txt+"<font color='"+mesh[i+num3]+"'>"+message.charAt(i)+"<\/font>"; } colorsh.innerHTML=txt;txt=""; if(num3 != (message.length*2)) { num3++; setTimeout("shape2()",50) } else { num2=0; num3=0; txt=background_color; background_color=text_color; text_color=txt; txt="";setTimeout("shape()",1000); } }
shape(); </script> | |
|