Created
March 13, 2018 04:17
-
-
Save kaoru-fukusato/c56a342c262c67d43f21669e10d49512 to your computer and use it in GitHub Desktop.
コピペで学べるプログラミング基本2-4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"><!-- | |
myFlg = 0; | |
function myFunc(){ | |
if (myFlg == 0){ | |
document.myForm.myFormMes.value = "いらっしゃいませ!"; | |
myFlg = 1; | |
}else{ | |
document.myForm.myFormMes.value = ""; | |
myFlg = 0; | |
} | |
} | |
// --></script> | |
<form name="myForm"> | |
<input type="text" size="20" name="myFormMes"> | |
</form> | |
<script type="text/javascript"><!-- | |
setInterval("myFunc()", 500); | |
// --></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment