÷ºÎµÈ ÆÄÀÏÀÌ À̹ÌÁö(JPG,GIF)ÀÎÁö üũÇÕ´Ï´Ù. |
|
|
 |
17³â Àü |
<html>
<head>
<title>http://www.xtx.kr</title>
<script language="javascript">
<!--
function check(){
if(document.frm.F1.value=="") {
alert("÷ºÎµÈ ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.")
return false
}
if((document.frm.F1.value.lastIndexOf(".jpg")==-1) && (document.frm.F1.value.lastIndexOf(".gif")==-1)) {
alert("GIF, JPG¸¸ ÷ºÎÇÒ ¼ö ÀÖ½À´Ï´Ù.")
return false
}
return true
}
!-->
</script>
</head>
<body>
<form method="POST" name="frm" enctype="multipart/form-data" action="#" onsubmit="return check(this)">
<input type="file" name="F1" size="20"><br>
<input type="submit" value="Àü¼Û" name="B1"><input type="reset" value="Ãë¼Ò" name="B2">
</form>
</body>
</html> |
|
̵̧ : 329 |
̵̧
¸ñ·Ï
|
|