도움말 띄우기 - 관리자 페이지에 있는 것을 추림
관리자 페이지에 있는 것을 추렸습니다.
js/common.js에 다음 추가
var old2='';
function help2(name, left, top) {
submenu2=eval(name+".style");
if (old2!=submenu2){
if(old2!='') { old2.display='none'; }
submenu2.display='block';
old2=submenu2;
} else {
submenu2.display='none';
old2='';
}
submenu2.posLeft = left;
submenu2.posTop = top;
}
lib/common.lib.php에 다음 추가
function help2( $icon, $help="")
{
global $admin_dir;
static $idx = 0;
$idx++;
$help = preg_replace("/\n/", "<br>", $help);
$str = "<img src='$icon' border=0 align=absmiddle onclick=\"help2('help__$idx', event.x+20, event.y-10+document.body.scrollTop);\" style='cursor:hand;'>";
$str .= "<div id='help__$idx' style='position:absolute; top:0px; left:0px; display:none;'>";
$str .= "<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>$help</div></div></div>";
$str .= "</div>";
return $str;
}
사용법
js/common.js와 lib/common.lib.php가
있다는 조건하에
<?=help2("/images/q.gif", "heeeeeelp")?><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
js/common.js에 다음 추가
var old2='';
function help2(name, left, top) {
submenu2=eval(name+".style");
if (old2!=submenu2){
if(old2!='') { old2.display='none'; }
submenu2.display='block';
old2=submenu2;
} else {
submenu2.display='none';
old2='';
}
submenu2.posLeft = left;
submenu2.posTop = top;
}
lib/common.lib.php에 다음 추가
function help2( $icon, $help="")
{
global $admin_dir;
static $idx = 0;
$idx++;
$help = preg_replace("/\n/", "<br>", $help);
$str = "<img src='$icon' border=0 align=absmiddle onclick=\"help2('help__$idx', event.x+20, event.y-10+document.body.scrollTop);\" style='cursor:hand;'>";
$str .= "<div id='help__$idx' style='position:absolute; top:0px; left:0px; display:none;'>";
$str .= "<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>$help</div></div></div>";
$str .= "</div>";
return $str;
}
사용법
js/common.js와 lib/common.lib.php가
있다는 조건하에
<?=help2("/images/q.gif", "heeeeeelp")?><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 2개
19년 전
rolo님 감사합니다.
적용해보니 깜찍(?)하고 좋아보입니다.^^
적용해보니 깜찍(?)하고 좋아보입니다.^^
19년 전
<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>
이 부분 css에 대한 설명이 빠졌군요.
적당하게 조정해 주시면 됩니다. ^^
이 부분 css에 대한 설명이 빠졌군요.
적당하게 조정해 주시면 됩니다. ^^
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 776 | JavaScript | 19년 전 | 4306 | ||
| 775 | Flash | 19년 전 | 4546 | ||
| 774 | JavaScript | 19년 전 | 2991 | ||
| 773 | 기타 | 19년 전 | 4063 | ||
| 772 | 기타 |
|
19년 전 | 3587 | |
| 771 | Flash |
DeepnBlue
|
19년 전 | 4546 | |
| 770 | 기타 |
pearly
|
19년 전 | 4351 | |
| 769 | JavaScript |
|
19년 전 | 3421 | |
| 768 | JavaScript | 19년 전 | 4387 | ||
| 767 | PHP |
|
19년 전 | 6760 | |
| 766 | 기타 | 19년 전 | 3170 | ||
| 765 | PHP |
|
19년 전 | 6211 | |
| 764 | 기타 |
|
19년 전 | 3467 | |
| 763 | JavaScript | 19년 전 | 3360 | ||
| 762 | Linux |
|
19년 전 | 3313 | |
| 761 | 기타 | 19년 전 | 3130 | ||
| 760 | 기타 |
|
19년 전 | 3537 | |
| 759 | JavaScript | 19년 전 | 3285 | ||
| 758 | JavaScript |
|
19년 전 | 4479 | |
| 757 | 기타 | 19년 전 | 2742 | ||
| 756 | Linux | 19년 전 | 5283 | ||
| 755 | 기타 |
|
19년 전 | 4212 | |
| 754 | Flash |
|
19년 전 | 5219 | |
| 753 | JavaScript |
|
19년 전 | 4781 | |
| 752 | Flash |
|
19년 전 | 4937 | |
| 751 | 기타 | 19년 전 | 6667 | ||
| 750 | 기타 |
|
19년 전 | 3264 | |
| 749 | 기타 |
|
19년 전 | 3375 | |
| 748 | 기타 |
|
19년 전 | 3761 | |
| 747 | 기타 |
|
19년 전 | 5417 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기