[html] 상태표시줄 5
로빈아빠
본문
<SCRIPT>
var text1="내용"
comeback=0
cometo=0 //시작 위치
function dis(){
window.status=text1.substring(0,cometo)
if(comeback==1){
cometo--;
if(cometo==0){comeback=0}
} else {cometo++;if(cometo==text1.length){comeback=1}}
window.status=text1.substring(0,cometo)+"|"
if(cometo==text1.length){window.setTimeout("dis()",500);} else {window.setTimeout("dis()",50);}
}
dis()
</SCRIPT>
var text1="내용"
comeback=0
cometo=0 //시작 위치
function dis(){
window.status=text1.substring(0,cometo)
if(comeback==1){
cometo--;
if(cometo==0){comeback=0}
} else {cometo++;if(cometo==text1.length){comeback=1}}
window.status=text1.substring(0,cometo)+"|"
if(cometo==text1.length){window.setTimeout("dis()",500);} else {window.setTimeout("dis()",50);}
}
dis()
</SCRIPT>
관련링크
댓글목록
등록된 댓글이 없습니다.