Vereceğim bu javascript kodları ile sallanan yazı yapabilir, web sayfalarınızda gösterebilirsiniz.

Test etmek için lütfen buraya tıklayın. Kodları görmek içinde lütfen yazının devamı okuyun.

 
<script><!--
 
var theText = "extradestek.org"; 
// 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="http://www.extradestek.org" mce_href="http://www.extradestek.org"><font color='gray' style="font-size: "+ size +"pt" mce_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"></div>
<!--
Bu script david gardner'a aittir.
 
-->