Toggle navigation
Images.Elk.pl
listscript fcgi id=124
Filtr wysyłanych plików [skrypty]
Proszę wysłać plik graficzny typu:
document.write(extArray.join(" "));
<!-- TWO STEPS TO INSTALL UPLOAD FILTER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: ArjoGod, Shauna Merritt -->
<!-- Modified By: Ronnie T. Moore, Editor -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
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("Proszę wysyłać tylko pliki graficzne typu: "
+ (extArray.join(" ")) + "\nProsze wybrać nowy plik "
+ "i wysłać ponownie.");
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
Proszę wysłać plik graficzny typu:
<script>
document.write(extArray.join(" "));
</script>
<p>
<form method=post name=upform action="/cgi-bin/some-script.cgi" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value="Submit" onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>
Wyszukiwarka
Podobne podstrony:
listscript fcgi id=33
listscript fcgi id=96
listscript fcgi id=2
listscript fcgi id=61
listscript fcgi id=45
listscript fcgi id=6
listscript fcgi id=90
listscript fcgi id=87
listscript fcgi id=57
listscript fcgi id=54
listscript fcgi id=22
listscript fcgi id=151
listscript fcgi id=5
listscript fcgi id=39
listscript fcgi id=47
listscript fcgi id=89
listscript fcgi id=157
listscript fcgi id=108
więcej podobnych podstron