|
موضوع اسكريپت باز كردن فايل
اين اسكريپت به كاربر اجازه مي دهد كه فايل دلخواهي از هارد خود را باز
كرده و سپس آن را در پنجره جديد باز كند .
<!-- TWO STEPS TO INSTALL FILE OPEN:
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">
<!-- Begin
// Thank you Larry McClurg for the cross-browser fix
function whatFile() {
window.location= 'file:///' + document.form1.cmuds.value;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document
-->
<BODY>
<form name=form1>
<input type=file name="cmuds">
<input type=button onClick="whatFile()" value="Open File">
</form>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by ostadonline
<!-- Script Size: 1.09 KB -->
|