텍스트 버튼 정보
텍스트 버튼
본문
아래소스에서
<td width="43"><input type=image src="/img/login.jpg" width="43" height="28" /></td>
이부분을 그냥 텍스트로 바꾸고 싶습니다 인풋 이미지로 되어잇는데 그냥
로그인 이란 텍스트로 치고싶은데 값을 어떻게 넘겨야되나요 ㅠㅠ?
<a href="">로그인 </a> 이런식으로 해야되나요?...
경로를 어떻게 줘야될지 모르겠어요 ㅠㅠ 갈켜주세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($g4['https_url']) {
$outlogin_url = $_GET['url'];
if ($outlogin_url) {
if (preg_match("/^\.\.\//", $outlogin_url)) {
$outlogin_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $outlogin_url));
}
else {
$purl = parse_url($g4[url]);
if ($purl[path]) {
$path = urlencode($purl[path]);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$outlogin_url = $g4[url].$urlencode;
}
}
else {
$outlogin_url = $g4[url];
}
}
else {
$outlogin_url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<!--<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>-->
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off">
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<tr>
<td width="568"><img src="/img/login_01.jpg" width="568" height="28" /></td>
<td width="16"><img src="/img/id.jpg" width="16" height="28" /></td>
<td width="77" valign="bottom"><input style='padding-top:7px;background-image:url(/img/login_03.jpg); background-position:center; width:77; height:28;border=0px;' class=ed name="mb_id" maxlength="15" ></td>
<td width="7"><img src="/img/login_04.jpg" width="7" height="28" /></td>
<td width="18"><img src="/img/pw.jpg" width="18" height="28" /></td>
<td width="76" id=pw2>
<input style="padding-top:7px; width:76; height:28; background-image:url(/img/login_06.jpg); background-repeat:no-repeat; background-position:center;border=0px;" class=ed name="mb_password" id="outlogin_mb_password" type="password" size="14" maxlength="20" onKeyPress="check_capslock(event, 'outlogin_mb_password');"></td>
<td width="43"><input type=image src="/img/login.jpg" width="43" height="28" /></td>
<td width="46"><a href="/bbs/register.php"><img src="/img/join.jpg" width="46" height="28" /></a></td>
<td width="54"><a href="/shop/wishlist.php"><!--<a href="/bbs/mypage01.php">--><img src="/img/mypage.jpg" width="54" height="28" /></a></td>
<td width="38"><a href="/shop/cart.php"><img src="/img/shopping.jpg" width="38" height="28" /></a></td>
<td width="61"><a href="/bbs/board.php?bo_table=faq"><img src="/img/faq.jpg" width="60" height="28" /></a></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
if (!f.mb_id.value)
{
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
{
alert("패스워드를 입력하십시오.");
f.mb_password.focus();
return false;
}
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
else
echo "f.action = '$g4[bbs_path]/login_check.php';";
?>
f.submit();
}
</script>
<td width="43"><input type=image src="/img/login.jpg" width="43" height="28" /></td>
이부분을 그냥 텍스트로 바꾸고 싶습니다 인풋 이미지로 되어잇는데 그냥
로그인 이란 텍스트로 치고싶은데 값을 어떻게 넘겨야되나요 ㅠㅠ?
<a href="">로그인 </a> 이런식으로 해야되나요?...
경로를 어떻게 줘야될지 모르겠어요 ㅠㅠ 갈켜주세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($g4['https_url']) {
$outlogin_url = $_GET['url'];
if ($outlogin_url) {
if (preg_match("/^\.\.\//", $outlogin_url)) {
$outlogin_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $outlogin_url));
}
else {
$purl = parse_url($g4[url]);
if ($purl[path]) {
$path = urlencode($purl[path]);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$outlogin_url = $g4[url].$urlencode;
}
}
else {
$outlogin_url = $g4[url];
}
}
else {
$outlogin_url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<!--<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>-->
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off">
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<tr>
<td width="568"><img src="/img/login_01.jpg" width="568" height="28" /></td>
<td width="16"><img src="/img/id.jpg" width="16" height="28" /></td>
<td width="77" valign="bottom"><input style='padding-top:7px;background-image:url(/img/login_03.jpg); background-position:center; width:77; height:28;border=0px;' class=ed name="mb_id" maxlength="15" ></td>
<td width="7"><img src="/img/login_04.jpg" width="7" height="28" /></td>
<td width="18"><img src="/img/pw.jpg" width="18" height="28" /></td>
<td width="76" id=pw2>
<input style="padding-top:7px; width:76; height:28; background-image:url(/img/login_06.jpg); background-repeat:no-repeat; background-position:center;border=0px;" class=ed name="mb_password" id="outlogin_mb_password" type="password" size="14" maxlength="20" onKeyPress="check_capslock(event, 'outlogin_mb_password');"></td>
<td width="43"><input type=image src="/img/login.jpg" width="43" height="28" /></td>
<td width="46"><a href="/bbs/register.php"><img src="/img/join.jpg" width="46" height="28" /></a></td>
<td width="54"><a href="/shop/wishlist.php"><!--<a href="/bbs/mypage01.php">--><img src="/img/mypage.jpg" width="54" height="28" /></a></td>
<td width="38"><a href="/shop/cart.php"><img src="/img/shopping.jpg" width="38" height="28" /></a></td>
<td width="61"><a href="/bbs/board.php?bo_table=faq"><img src="/img/faq.jpg" width="60" height="28" /></a></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
if (!f.mb_id.value)
{
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
{
alert("패스워드를 입력하십시오.");
f.mb_password.focus();
return false;
}
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
else
echo "f.action = '$g4[bbs_path]/login_check.php';";
?>
f.submit();
}
</script>
댓글 전체
<a href="#" onclick="fhead_submit(document.fwrite);">확인</a>
현재 자바스크립트 함수를 참조한다면 위와 같이 처리하셔도 무방할듯 싶네요
현재 자바스크립트 함수를 참조한다면 위와 같이 처리하셔도 무방할듯 싶네요