复制代码代码如下:
<! doctype html public "-// w3c // dtd xhtml 1.0 เข้มงวด // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">>
<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">
<style type = "text/css" media = "หน้าจอ">
ร่างกาย {พื้นหลัง: #FFF; ความกว้าง: 500px; มาร์จิ้น: 20px auto;}
อินพุต, textarea, p {font-family: 宋体, 黑体; ขนาดตัวอักษร: 12pt;}
อินพุต, textarea {border: solid 1px #aaa; Padding: 4px; ความกว้าง: 98%;}
</style>
<script type = "text/javascript" src = "js/swfobject.js"> </script>
<script type = "text/javascript" src = "js/downdoadify.js"> </script>
<!-<script type = "text/javascript" src = "js/downdoadify.min.js"> </script>->
<script type = "text/javascript">
window.load = function () {
downloadify.create ('downloadify', {
ชื่อไฟล์: function () {
ส่งคืน document.getElementById ('ชื่อไฟล์') ค่า;
-
ข้อมูล: function () {
ส่งคืน document.getElementById ('ข้อมูล') ค่า;
-
oncomplete: function () {Alert ('成功保存文件!'); -
OnCancel: function () {Alert ('您已经取消保存文件'); -
onerror: function () {Alert ('出现错误了'); -
swf: 'js/downloadify.swf'
downloadImage: '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 = "ดาวน์โหลด"> คุณต้องติดตั้ง Flash 10 เพื่อดาวน์โหลดไฟล์นี้ </p>
</body>
</html>