k

자바 스크립트 질문좀 할께요

function BBTag(tag,s,text,form){
switch(tag)
{
case '[b]':
if (document.forms[form].elements[s].value=="B ")
{
document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[b]";
document.forms[form].elements[s].value="B*";
}
else
{
document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[/b]";
document.forms[form].elements[s].value="B ";
}
break;
}
document.forms[form].elements[text].focus();
}

</script>


<input style="font-weight: bold;" type="button" name="bold" value="B " onclick="javascript: BBTag('[b]','bold','<? echo $name; ?>','<? echo $form; ?>')" />

위에처럼 되어있는데 이걸 이미지로 바꿀려면 어떻게 해야할까요?

<img src="images/text_bold.png">

도저히 모르겠습니다 ;;
|

댓글 1개

<input style="font-weight: bold;" type="image" src="images/text_bold.png" name="bold" value="B " onclick="javascript: BBTag('[b]','bold','<? echo $name; ?>','<? echo $form; ?>')" />
댓글을 작성하시려면 로그인이 필요합니다. 로그인

토크

개발과 관련된 어떤 얘기도 괜찮습니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 1,586
17년 전 조회 1,923
17년 전 조회 2,305
17년 전 조회 1,916
17년 전 조회 1,726
17년 전 조회 1,583
17년 전 조회 1,797
17년 전 조회 1,527
17년 전 조회 2,038
17년 전 조회 1,473
17년 전 조회 1,588
17년 전 조회 1,910
17년 전 조회 1,566
17년 전 조회 2,429
17년 전 조회 1,634
17년 전 조회 1,682
17년 전 조회 1,383
17년 전 조회 1,464
17년 전 조회 1,532
17년 전 조회 1,821
17년 전 조회 1,371
17년 전 조회 1,459
17년 전 조회 1,842
17년 전 조회 1,509
17년 전 조회 1,501
17년 전 조회 1,473
17년 전 조회 1,369
17년 전 조회 1,701
17년 전 조회 1,440
17년 전 조회 1,835
🐛 버그신고