[건의?]새롭게 적용된 엔터되어진 부분에 자동 <br>이 입력되는 소스. > 그누3질답

그누3질답

[건의?]새롭게 적용된 엔터되어진 부분에 자동 <br>이 입력되는 소스. 정보

그누보드 [건의?]새롭게 적용된 엔터되어진 부분에 자동 <br>이 입력되는 소스.

본문

글을 기록하다가 안 사실인데 여기 사이트가 변경되었군요.....음....빠르기도 하시지.... 그래서 다시 다운로드를 받아서 덮어씌우기를 하고 그리고 게시판의 gbform_main.skin.php화일을 변경도 해주고....

궁금한 점이 있는데 지난 자료들은
 &nbsp; function html_auto_br(obj)
 &nbsp; {
 &nbsp; &nbsp; &nbsp; if (obj.checked) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (result) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj.value = 2;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj.value = 1;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
 &nbsp; &nbsp; &nbsp; } else {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj.value = 1;
 &nbsp; &nbsp; &nbsp; }
 &nbsp; }
부분이 자동입력되질 않은 상태에서 머물러 있군요.... 어떻게하면 value값을 바꿀 수 있죠?
  • 복사

댓글 전체

$value_html 변수가 추가되었습니다.

<?=$value_html?> // html 값 (1은 html , 2는 html 자동줄바꿈)

<?=$show_html_begin?><input type=checkbox name=wr_html value='<?=$value_html?>' <?=$checked_html?> onclick="html_auto_br(this)">HTML&nbsp;<?=$show_html_end?>

와 같이 수정하여 주십시오.
© SIRSOFT
현재 페이지 제일 처음으로