2026년 10월 24일 토요일
미단재

팁앤텍 그림으로 만든 버튼에 글자 넣기

작성자 user 작성일 2003-04-12 01:14:05 조회수 614
사용예:
button_image(70, ' 로그인', 'login.submit();');


if(preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT']))
{
$cursor_link = 'hand';
}
else
{
$cursor_link = 'pointer';
}

function button_image($length, $text = '', $link = '')
{
global $cursor_link;
$len = $length - 6;
if($len < 1)
{
$len = 1;
$length = 7;
}
if($link != '')
$link = ' onclick="'.$link.'" style="cursor:'.$cursor_link.';"';
return('
'.$text.'
');
}

댓글 0개