• Web sitemizin içeriğine ve tüm hizmetlerimize erişim sağlamak için Web sitemize kayıt olmalı ya da giriş yapmalısınız. Web sitemize üye olmak tamamen ücretsizdir.
  • Sohbetokey.com ile canlı okey oynamaya ne dersin? Hem sohbet et, hem mobil okey oyna!
  • Soru mu? Sorun mu? ''Bir Sorum Var?'' sistemimiz aktiftir. Paylaşın beraber çözüm üretelim.

Javascript | Sallanan yazı

Üyelik Tarihi
7 Ocak 2015
Konular
4,091
Mesajlar
4,274
MFC Puanı
40
Kod:
<html>    <head>  <**** http-equiv="Content-Type" content="text/html; charset=windows-1254">  <title>Sallanan yazı</title>  </head>    <body bgcolor="#FFFF00" onload="sallan(0)">      <script language="JavaScript">    var theText = "turkhackteam.net";  // metni buradan değiştirin  function nextSize(i,incMethod,textLength)  {  if (incMethod == 1) return (75*Math.abs( Math.sin(i/(textLength/3.14))) );  // yukarıdaki 75 yazı karakteri (size)  if (incMethod == 2) return (400*Math.abs( Math.cos(i/(textLength/3.14))));  //  yukarıdaki 400 salınım hızı  }    function sizeCycle(text,method,dis)  {       output = "";       for (i = 0; i < text.length; i++)       {            size = parseInt(nextSize(i +dis,method,text.length));            output += "<a href='mailto:terribleturk-nmtd@hotmail.com.tr'><font color='gray' style='font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font></a>";  //      eğer köprü eklemeyacekseniz yukarıyı değiştirin       }       theDiv.innerHTML = output;  }    function sallan(n)   {          sizeCycle(theText,1,n);       if (n > theText.length) {n=0}       setTimeout("sallan(" + (n+1) + ")", 50);  }  </script>  <div ID="theDiv" align="center">    </div>  <!--       Buraya yazı yazın. -->  </body>    </html>
 
Üst