글쓰기에서 스크립트가 작동이 안됩니다. 정보
글쓰기에서 스크립트가 작동이 안됩니다.
본문
input 값에 글자 미리보여주고 input 클릭하면 미리보여주는 글자가 사라지는 스크립트인데
유독 글쓰기 에서만 글자가 안사라지네요 -_-
우짜면 좋을까요 ㅠㅠ
<script>
var count = 0;
function chec(name) {
count++;
if(count == 1){
var doc=document.body.createTextRange();
doc.moveToElementText(document.all(name));
doc.select();
doc.execCommand('delete');
return;
}else{
return;
}
}
</script>
<textarea name='wr_content' id='wr_content' class=ed style="font-family:굴림체; color:#000; padding:10px;line-height:15px;margin:auto; margin-top:0px; overflow: hidden; width:130px; height:100px; font-size: 9pt; border:0; background-color:#88C8F8;" cols="10" onkeyup="byte_check('wr_content', 'sms_bytes');" accesskey="m" itemname='메세지' onFocus='chec(this.name);this.style.color=000000;' onclick='chec(this.name);this.style.color=000000;'>※ 핸드폰번호는 숫자만 입력바랍니다.</textarea>
유독 글쓰기 에서만 글자가 안사라지네요 -_-
우짜면 좋을까요 ㅠㅠ
<script>
var count = 0;
function chec(name) {
count++;
if(count == 1){
var doc=document.body.createTextRange();
doc.moveToElementText(document.all(name));
doc.select();
doc.execCommand('delete');
return;
}else{
return;
}
}
</script>
<textarea name='wr_content' id='wr_content' class=ed style="font-family:굴림체; color:#000; padding:10px;line-height:15px;margin:auto; margin-top:0px; overflow: hidden; width:130px; height:100px; font-size: 9pt; border:0; background-color:#88C8F8;" cols="10" onkeyup="byte_check('wr_content', 'sms_bytes');" accesskey="m" itemname='메세지' onFocus='chec(this.name);this.style.color=000000;' onclick='chec(this.name);this.style.color=000000;'>※ 핸드폰번호는 숫자만 입력바랍니다.</textarea>
댓글 전체
되는데요..
근데 onclick이 굳이 있어야 할 이유가 있나요..
onfocus만으로 충분할거 같은데..
근데 onclick이 굳이 있어야 할 이유가 있나요..
onfocus만으로 충분할거 같은데..
저는 베이직스킨인데 안되네요 ㅠㅠ