사용예:
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.’ |
‘);
}