Sabtu, 17 April 2010

Logic if

#head>
#title>Untitled Document#/title>
#script>
str=" nama ku namaku ";
i=0;
function anim()
{
f.t.value=str.substring(i,str.length);
i++;
if(i>str.length)
{
i=0;
}
setTimeout("anim()",100);
}
#/script>
#/head>

#body onLoad="anim()">
#form name="f">
#input type="text" name="t" size="50" style="border:0"/>
#/form>
#/body>