复制代码代码如下:
<! doctype html public "-// w3c // dtd xhtml 1.0 Strict // en" "http://www.w3
<html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml: lang = "en">
<head>
<title> تنزيل </title>
<meta http-equiv = "content-type" content = "text/html ؛ charset = utf-8">
<type type = "text/css" media = "screen">
الجسم {الخلفية: #fff ؛ العرض: 500 بكسل ؛ الهامش: 20 بكسل Auto ؛}
الإدخال ، textarea ، p {font-family: 宋体 ، 黑体 ؛ حجم الخط: 12pt ؛}
المدخلات ، textarea {الحدود: الصلبة 1px #AAA ؛ الحشو: 4px ؛ العرض: 98 ٪ ؛}
</style>
<script type = "text/javaScript" src = "js/swfobject.js"> </script>
<script type = "text/javaScript" src = "js/downloadify.js"> </script>
<!-<script type = "text/javaScript" src = "js/downloadify.min.js"> </script>->
<script type = "text/javaScript">
window.load = function () {
DownloadIfy.Create ('DownloadIfy' ، {
اسم الملف: function () {
return document.getElementById ('filename'). القيمة ؛
} ،
البيانات: function () {
return document.getElementById ('data'). القيمة ؛
} ،
onComplete: function () {Alert ('成功保存文件!') ؛ } ،
Oncancel: function () {Alert ('您已经取消保存文件') ؛ } ،
onerror: function () {Alert ('出现错误了') ؛ } ،
SWF: 'JS/DownloadIfy.swf' ،
DownloadImage: 'JS/Download.png' ،
العرض: 100 ،
الارتفاع: 30 ،
شفاف: صحيح ،
إلحاق: خطأ
}) ؛
}
</script>
</head>
<body onload = "load () ؛">
<type type = "text" name = "filename" value = "文件名 .txt" id = "filename" /> <br />
<textarea cols = "60" rows = "10" name = "data" id = "data"> 文件内容 </textarea>
<p id = "downloadify"> يجب أن يكون لديك Flash 10 مثبتة لتنزيل هذا الملف. </p>
</body>
</html>