도움말 띄우기 - 관리자 페이지에 있는 것을 추림
관리자 페이지에 있는 것을 추렸습니다.
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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 716 | PHP |
|
19년 전 | 3870 | |
| 715 | PHP |
|
19년 전 | 4159 | |
| 714 | 기타 |
|
19년 전 | 3798 | |
| 713 | 기타 |
|
19년 전 | 3842 | |
| 712 | 기타 |
|
19년 전 | 3605 | |
| 711 | Linux |
|
19년 전 | 4158 | |
| 710 | MySQL |
|
19년 전 | 3812 | |
| 709 | JavaScript | 19년 전 | 2907 | ||
| 708 | 기타 | 19년 전 | 3970 | ||
| 707 | JavaScript |
|
19년 전 | 3240 | |
| 706 | 기타 |
|
19년 전 | 2836 | |
| 705 | MySQL |
|
19년 전 | 13878 | |
| 704 | Flash |
|
19년 전 | 5459 | |
| 703 | JavaScript |
|
19년 전 | 3643 | |
| 702 | 기타 | 19년 전 | 3056 | ||
| 701 | JavaScript | 19년 전 | 3294 | ||
| 700 | JavaScript | 19년 전 | 3162 | ||
| 699 | 기타 |
Power
|
19년 전 | 3545 | |
| 698 | JavaScript | 19년 전 | 3214 | ||
| 697 | JavaScript |
pearly
|
19년 전 | 5428 | |
| 696 | 기타 |
pearly
|
19년 전 | 4563 | |
| 695 | 기타 |
pearly
|
19년 전 | 4760 | |
| 694 | JavaScript |
pearly
|
19년 전 | 3857 | |
| 693 | PHP | 19년 전 | 4076 | ||
| 692 | JavaScript |
|
19년 전 | 3483 | |
| 691 | JavaScript |
pearly
|
19년 전 | 3819 | |
| 690 | 기타 | 19년 전 | 3444 | ||
| 689 | 기타 |
pearly
|
19년 전 | 4788 | |
| 688 | 기타 | 19년 전 | 4440 | ||
| 687 | 기타 |
|
19년 전 | 3064 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기