NG4R3P
Linux kimuko-static 5.10.0-19-cloud-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64
  SOFT : Apache/2.4.66 (Debian) PHP : 7.4.33
/mnt/disks/kimuko-static/html/engawa/form_parts/
10.174.0.2

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
base.css 0.239 KB -rwxrwxr-x 2022-11-15 14:51 R E G D
des.js 1.299 KB -rwxrwxr-x 2022-11-15 14:51 R E G D
REQUEST EXIT
// TEXTAREA や INPUT の初期値をクリックで消す // http://gmr.blog.shinobi.jp/Entry/527/ // 名称が思い浮かばない、ClearDefaultValue とか長すぎる。 // なぜか「説明」という意味の、Description を略して、Des になった。 function setupDes() { // 種付け作業 var textarea = document.getElementsByTagName("textarea"); for (i = 0; i < textarea.length; i++) { if (textarea[i].className.search("nodes") < 0) { if (textarea[i].value == textarea[i].defaultValue) {textarea[i].className += " ondes"; } textarea[i].onfocus = function() {offDes(this); } textarea[i].onblur = function() {onDes(this); } } } var input = document.getElementsByTagName("input"); for (i = 0; i < input.length; i++) { if ((input[i].className.search("nodes") < 0) && ((input[i].getAttribute("type") == "text")||(input[i].getAttribute("type") == null))) { if (input[i].value == input[i].defaultValue) {input[i].className += " ondes"; } input[i].onfocus = function() {offDes(this); } input[i].onblur = function() {onDes(this); } } } return; } function offDes(from) { if (from.className.search("ondes") < 0) {return 0;} from.className = from.className.replace(/ondes/, ""); from.value = ""; return 1; } function onDes(from) { if (from.value != "") {return 0;} from.className += " ondes"; from.value = from.defaultValue; return 1; }