<이메일 직접 선택하기>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<body>
<script language=javascript>
<!--
function email_change(){
if(document.myform.email.options[document.myform.email.selectedIndex].value == '00'){
document.myform.email2.disabled = true;
document.myform.email2.value = "";
}
if(document.myform.email.options[document.myform.email.selectedIndex].value == '99'){
document.myform.email2.disabled = false;
document.myform.email2.value = "";
document.myform.email2.focus();
} else{
document.myform.email2.disabled = true;
document.myform.email2.value = document.myform.email.options[document.myform.email.selectedIndex].value;
}
}
</script>
<form name="myform" method="post" action="aaa.jsp" style="margin:0">
<input type="text" name="email1" size="10">
@
<input type="text" name="email2" size="10" disabled>
<select name="email" class="SLINOHEIGT" onChange="email_change()">
<option value="00" selected>선택하세요 </option>
<option value="chol.com">chol.com </option>
<option value="hanmail.net">hanmail.net </option>
<option value="dreamwiz.com">dreamwiz.com </option>
<option value="empal.com">empal.com </option>
<option value="freechal.com">freechal.com </option>
<option value="hanafos.com">hanafos.com </option>
<option value="hanmir.com">hanmir.com </option>
<option value="hihome.com">hihome.com </option>
<option value="hotmail.com">hotmail.com </option>
<option value="intizen.com">intizen.com </option>
<option value="kebi.com">kebi.com </option>
<option value="kornet.net">kornet.net </option>
<option value="korea.com">korea.com </option>
<option value="lycos.co.kr">lycos.co.kr </option>
<option value="msn.com">msn.com </option>
<option value="nate.com">nate.com </option>
<option value="naver.com">naver.com </option>
<option value="netian.com">netian.com </option>
<option value="samsunglife.com">samsunglife.com</option>
<option value="samsung.com">samsung.com </option>
<option value="samsung.co.kr">samsung.co.kr </option>
<option value="shinbiro.com">shinbiro.com </option>
<option value="simmani.com">simmani.com </option>
<option value="unitel.co.kr">unitel.co.kr </option>
<option value="yahoo.co.kr">yahoo.co.kr </option>
<option value="orgio.net">orgio.net </option>
<option value="hitel.net">hitel.net </option>
<option value="bcline.com">bcline.com </option>
<option value="99">기타[직접입력] </option>
</select>
</form>
</BODY>
</HTML>
'HTML & Script' 카테고리의 다른 글
HTML 특수문자표, ( 숫자표현,문자표현 ) 코드표 (0) | 2010.05.24 |
---|---|
색상 코드표 (0) | 2010.05.18 |
숫자외 입력금지 (0) | 2010.05.18 |
HTML5 (0) | 2010.04.20 |
input box 에서 readonly 제어 방법 (0) | 2010.04.13 |