Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaoru-fukusato/d2394d27107d41bb9df8951381847d53 to your computer and use it in GitHub Desktop.
Save kaoru-fukusato/d2394d27107d41bb9df8951381847d53 to your computer and use it in GitHub Desktop.
コピペで学べるプログラミング基本1-10
<script type="text/javascript"><!--
myMsg = "いらっしゃいませ こんにちは!";
myCnt = 0;
function myFunc(){
document.myForm.myFormMes.value = myMsg.substring( 0 , myCnt ) + "_";
myCnt = ( myCnt == myMsg.length ) ? 0 : myCnt+1;
}
// --></SCRIPT>
<form name="myForm">
<input type="text" size="30" name="myFormMes">
</form>
<script type="text/javascript"><!--
setInterval("myFunc()",200);
// --></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment