2026년 11월 8일 일요일
미단재

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

사용예:
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

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.