<html>
<head>
<title>checkbox관련 연습 </title>
<script language="javascript">
<!--
var count=0
function main(){
msg=text.innerText
comp=msg.length
tatata()
}
function tatata(){
if(count<=comp){
text.innerText=msg.substring(0,count)
count++
setTimeout("tatata()",200)
}
else{
count=0
main()
}
}
//-->
</script>
</head>
<body onLoad="main()" text="#5c0099">
<font size="10" face="견고딕"><b>
<span id="text" style="position:absolute;left:120px: top:170px;width:300px;height:75px;z-index:1">타다다다다닥 이렇게 쳐집니다.</span>
</font>
</body>
</html>
반응형