배추스킨 공부중인데요 채택완료
zkdlf
8년 전
조회 4,114
이모티콘관련해서 보고있는데 이모티콘 mw.emoticon이 폴더에 있는 이모티콘을 가져와서 등록해라
onclick같은게 없는데 어떻게 작동이되는건가요?
view.comment.skin.php말고 다른곳과 연결이 되어있는건가요?
</p><p><?php
if (trim($mw_basic[cf_comment_write_notice])) {
$comment_write_notice = $mw_basic[cf_comment_write_notice];
$comment_write_notice = addslashes($comment_write_notice);</p><p> $comment_write_notice_html = $comment_write_notice;
$comment_write_notice_html = nl2br($comment_write_notice_html);
$comment_write_notice_html = preg_replace("/\n/", "", $comment_write_notice_html);
$comment_write_notice_html = preg_replace("/\r/", "", $comment_write_notice_html);</p><p> $comment_write_notice = preg_replace("/\n/", "<a href="file://\\n">\\n</a>", $comment_write_notice);
$comment_write_notice = preg_replace("/\r/", "", $comment_write_notice);
if (!is_g5()) {
?>
<script>
$(document).ready(function () {
<?php if ($is_comment_editor) { ?>
<?php if ($mw_basic[cf_editor] == "cheditor") { ?>
ed_wr_content.editArea.blur();
ed_wr_content.editArea.onfocus = function () {
var ed = ed_wr_content.outputBodyHTML();
if (ed == "<?=$comment_write_notice_html?>") {
ed_wr_content.doc.body.innerHTML = '';
}
}
<?php } else if ($mw_basic[cf_editor] == 'geditor') { ?>
ged = document.getElementById("geditor_wr_content_frame").contentWindow.document.body;
ged.onfocus = function () {
var ed = document.getElementById('wr_content').value;
if (ed == "<?$comment_write_notice_html?>") {
ged.innerHTML = '';
}
}
<?php } ?>
<?php } else { ?>
$("#wr_content").focus(function () {
if ($("#wr_content").val() == "<?=$comment_write_notice?>") {
$("#wr_content").val('');
}
});
<?php } ?>
});</p><p></script>
<?php } } ?> </p><p> </p><p> </p><p> </p><p><form name="fviewcomment" method="post" action="<?php echo $g4['bbs_path']?>/write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0;" enctype="multipart/form-data">
<div class="comment_function">
<?php if ($mw_basic[cf_comment_emoticon] && !$is_comment_editor && !$write_error) {?>
<button type="button" class="fa-button" name="btn_emoticon" style="*margin-right:10px;"><i class="fa fa-smile-o"></i> <span class="media-comment-button">이모티콘</span></button>
<script>
board_skin_path = '<?php echo $board_skin_path?>';
bo_table = '<?php echo $bo_table?>';
</script>
<script src="<?php echo $board_skin_path?>/mw.js/mw.emoticon.js"></script>
<?php } //comment_emoticon ?>
</form></p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인