复制代码代码如下:
<! Doctype html public "-// w3c // dtd xhtml 1.0 strict // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml: lang = "en">
<голова>
<title> Скачать </title>
<meta http-equiv = "content-type" content = "text/html; charset = utf-8">
<style type = "text/css" media = "screen">
Body {founale: #fff; Ширина: 500px; Маржа: 20px Auto;}
Ввод, Textarea, p {font-family: 宋体, 黑体; размер шрифта: 12pt;}
Ввод, Textarea {Border: Solid 1px #AAA; Заполнение: 4px; Ширина: 98%;}
</style>
<script type = "text/javascript" src = "js/swfobject.js"> </script>
<script type = "text/javascript" src = "js/downlify.js"> </script>
<!-<script type = "text/javascript" src = "js/downlify.min.js"> </script>->
<script type = "text/javascript">
window.load = function () {
Загрузить. Create ('загрузить
filename: function () {
return document.getElementById ('filename'). value;
},
data: function () {
return document.getElementbyId ('data'). value;
},
Oncomplete: function () {alert ('成功保存文件!'); },
oncancel: function () {alert ('您已经取消保存文件'); },
OnError: function () {alert ('出现错误了'); },
SWF: 'js/downlify.swf',
Скачать Image: 'JS/Download.png',
Ширина: 100,
высота: 30,
прозрачный: правда,
Приложение: ложь
});
}
</script>
</head>
<body Onload = "Load ();">
<input 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>