묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
폼메일에서 문서 열릴때 자동으로 name 적는곳에 커서 깜빡이게 하는거요
2003.09.21 17:18
http://dirtarena.byus.net/mail/제가 나름대로 엔지오에서 찾아보고 이것저것 적용시켜봤는데
겟폼이 한문서에 2개이상이면 오류나는것도 있고 해서 안되더군요
조언 부탁드립니다. 저기 아래에 <input type="text" name="name" maxlength="10" size="15" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"> ← 여기에만 커서 깜빡이게 하고 싶습니다.
고수님들의 조언 부탁드립니다.
참고로 링크도 해놓았으니 꼭 좀 알려주세요.
<html>
<head>
<link rel="stylesheet" href="../js/style.css">
<script language="JavaScript" type="text/javascript" src="../js/rollovers.js"></script>
<meta http-equiv="content-type" content="microsoft-notepad; charset=euc-kr">
<title>contact 2 webmaster</title>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="yes">
<form method="post" action="sendmail.php3">
<table width="99%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="100" colspan="2"><img src="mail.gif" width="200" height="80" border="0"><img src="mail01.gif" width="70" height="80" border="0"></td>
</tr>
<tr height="4">
<td colspan="2"></td>
</tr>
<tr height="2" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">Name </font></td>
<td><input type="text" name="name" maxlength="10" size="15" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">From </font></td>
<td><input type="text" name="frommail" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><input type="hidden" name="tomail" value="dirtarena@byus.net" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"><font class="contact">Subject </font></td>
<td><input type="text" name="subject" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">Memo </font></td>
<td><textarea name="memo" rows="8" cols="40" style="overflow:auto;" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></textarea></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="2" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" onfocus="this.blur()" value="SEND" style="font-size:7pt;font-family:tahoma;font-weight:bold;color:88a828;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="s"><img src="../dot.gif" width="5" height="5" border="0"><input type="reset" onfocus="this.blur()" value="RESET" style="font-size:7pt;font-family:tahoma;color:aeaeae;font-weight:bold;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="r"><img src="../dot.gif" width="5" height="5" border="0"><input type=button onfocus="this.blur()" value="X" onclick=location.href="javascript:window.close()" style="font-size:7pt;font-family:tahoma;color:aeaeae;font-weight:bold;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="x"><img src="../dot.gif" width="3" height="5" border="0"></td>
</tr>
</table>
</form>
</body>
</html>
겟폼이 한문서에 2개이상이면 오류나는것도 있고 해서 안되더군요
조언 부탁드립니다. 저기 아래에 <input type="text" name="name" maxlength="10" size="15" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"> ← 여기에만 커서 깜빡이게 하고 싶습니다.
고수님들의 조언 부탁드립니다.
참고로 링크도 해놓았으니 꼭 좀 알려주세요.
<html>
<head>
<link rel="stylesheet" href="../js/style.css">
<script language="JavaScript" type="text/javascript" src="../js/rollovers.js"></script>
<meta http-equiv="content-type" content="microsoft-notepad; charset=euc-kr">
<title>contact 2 webmaster</title>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="yes">
<form method="post" action="sendmail.php3">
<table width="99%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="100" colspan="2"><img src="mail.gif" width="200" height="80" border="0"><img src="mail01.gif" width="70" height="80" border="0"></td>
</tr>
<tr height="4">
<td colspan="2"></td>
</tr>
<tr height="2" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">Name </font></td>
<td><input type="text" name="name" maxlength="10" size="15" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">From </font></td>
<td><input type="text" name="frommail" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><input type="hidden" name="tomail" value="dirtarena@byus.net" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"><font class="contact">Subject </font></td>
<td><input type="text" name="subject" maxlength="35" size="25" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="1" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right"><font class="contact">Memo </font></td>
<td><textarea name="memo" rows="8" cols="40" style="overflow:auto;" style="font-size:8pt;font-family:verdana;color:4b4b4b;border-color:#dedede" class="input"></textarea></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr height="2" bgcolor="f1f1f1">
<td colspan="2"></td>
</tr>
<tr height="6">
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" onfocus="this.blur()" value="SEND" style="font-size:7pt;font-family:tahoma;font-weight:bold;color:88a828;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="s"><img src="../dot.gif" width="5" height="5" border="0"><input type="reset" onfocus="this.blur()" value="RESET" style="font-size:7pt;font-family:tahoma;color:aeaeae;font-weight:bold;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="r"><img src="../dot.gif" width="5" height="5" border="0"><input type=button onfocus="this.blur()" value="X" onclick=location.href="javascript:window.close()" style="font-size:7pt;font-family:tahoma;color:aeaeae;font-weight:bold;vertical-align:top;border:0;border-left-color:white;border-right-color:white;border-top-color:white;border-bottom-color:white;background-color:white;cursor:hand;" accesskey="x"><img src="../dot.gif" width="3" height="5" border="0"></td>
</tr>
</table>
</form>
</body>
</html>
body택에 onload="document.formmail.name.focus()"를, 폼택에 name="formmail"을 추가해주세요.
<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="yes" onload="document.formmail.name.focus()">
<form method="post" action="sendmail.php3" name="formmail">
이렇게 되겠죠 :)