<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<META NAME="Author" CONTENT="JASKO">
<SCRIPT LANGUAGE="JavaScript">
<!--
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("") != -1)
file = file.slice(file.indexOf("") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("아래 형태의 파일만 업로드 할 수 있습니다: "
+ (extArray.join(" ")) + "n다시 선택 해 주세요");
}
//-->
</script>
</HEAD>
<BODY>
<center>
아래 파일들만 업로드 할 수 있습니다
<script>
document.write(extArray.join(" "));
</script>
<p>
<form method=post name=upform action="../../result,html" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value=" 전송 " onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<META NAME="Author" CONTENT="JASKO">
<SCRIPT LANGUAGE="JavaScript">
<!--
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("") != -1)
file = file.slice(file.indexOf("") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("아래 형태의 파일만 업로드 할 수 있습니다: "
+ (extArray.join(" ")) + "n다시 선택 해 주세요");
}
//-->
</script>
</HEAD>
<BODY>
<center>
아래 파일들만 업로드 할 수 있습니다
<script>
document.write(extArray.join(" "));
</script>
<p>
<form method=post name=upform action="../../result,html" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value=" 전송 " onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 20064 | |
| 10570 | |
| 10566 |
JavaScript
모바일웹 이미지맵 사용 소스
3
|
| 10565 |
JavaScript
[복사하기] 버튼 자료~
|
| 20055 | |
| 10560 |
PHP
php 동영상 강좌
4
|
| 10559 |
jQuery
array toggle
|
| 10557 | |
| 20051 |
HTML
IE6 PNG 초 간단하게 적용
3
|
| 20049 | |
| 10555 | |
| 10554 | |
| 10553 | |
| 284 | |
| 10552 | |
| 10551 | |
| 10545 |
jQuery
참고사이트 모음
5
|
| 10541 | |
| 10533 | |
| 20045 | |
| 20036 | |
| 10530 | |
| 10526 | |
| 10524 | |
| 10522 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기