도움말 띄우기 - 관리자 페이지에 있는 것을 추림
관리자 페이지에 있는 것을 추렸습니다.
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에 대한 설명이 빠졌군요.
적당하게 조정해 주시면 됩니다. ^^
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4043 | |
| 29 |
아우겐나이스
|
21년 전 | 4434 | |
| 28 |
아우겐나이스
|
21년 전 | 3458 | |
| 27 | 21년 전 | 5822 | ||
| 26 | 21년 전 | 3095 | ||
| 25 | 21년 전 | 6072 | ||
| 24 | 18년 전 | 3643 | ||
| 23 | 21년 전 | 3631 | ||
| 22 | 21년 전 | 4242 | ||
| 21 | 21년 전 | 3814 | ||
| 20 | 21년 전 | 4216 | ||
| 19 | 21년 전 | 6677 | ||
| 18 | 21년 전 | 4732 | ||
| 17 | 21년 전 | 6982 | ||
| 16 | 21년 전 | 4167 | ||
| 15 | 21년 전 | 2626 | ||
| 14 | 21년 전 | 4965 | ||
| 13 | 21년 전 | 3396 | ||
| 12 |
Recluse
|
21년 전 | 3870 | |
| 11 |
아우겐나이스
|
21년 전 | 3566 | |
| 10 |
Recluse
|
21년 전 | 3390 | |
| 9 | 21년 전 | 3979 | ||
| 8 | 21년 전 | 5161 | ||
| 7 | 21년 전 | 4755 | ||
| 6 | 21년 전 | 5673 | ||
| 5 | 21년 전 | 4109 | ||
| 4 | 21년 전 | 4831 | ||
| 3 | 21년 전 | 4736 | ||
| 2 | 21년 전 | 3234 | ||
| 1 | 22년 전 | 4336 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기