<div class="codetitle"> <span><a style="CURSOR: pointer" data="81205" class="copybut" id="copybut81205" onclick="doCopy('code81205')"><u>复代码码</u></a></span> 代码如下:</div> <div class="codebody" id="code81205"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 엄격//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <br><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <br><머리> <br><title>다운로드</title> <br><meta http-equiv="content-type" content="text/html;charset=utf-8"> <br><style type="text/css" media="screen"> <br>본문 {배경: #fff; 너비: 500px; 여백: 20px 자동;} <br>input, textarea, p { 글꼴 계열: 宋体, 黑体; 글꼴 크기: 12pt;} <br>입력, 텍스트 영역 { 테두리: 단색 1px #aaa; 패딩: 4px; 너비: 98%;} <br></style> <br><script type="text/javascript" src="js/swfobject.js"></script> <br><script type="text/javascript" src="js/downloadify.js"></script> <br><!-- <script type="text/javascript" src="js/downloadify.min.js"></script> --> <br><script type="text/javascript"> <br>window.load=function(){ <br>Downloadify.create('downloadify',{ <br>filename: function(){ <br>return document.getElementById('filename').value; <br> }, <br>data: function(){ <br>return document.getElementById('data').value; <br>}, <br>onComplete: function(){ Alert('成功保存文件!'); }, <br>onCancel: function(){ 경고('您已经取消保存文件') }, <br>onError: function(){ 경고('take现错误了'), <br>swf: ' js/downloadify.swf', <br>downloadImage: 'js/download.png', <br>너비: 100, <br>높이: 30, <br>transparent: true, <br>append: false <br> }); <br>} <br></script> <br></head> <br><body onload="load();"> <br><input type="text" name="filename" value="文件name.txt" id="filename" /><br /> <br><textarea cols="60"rows="10" name="data" id="data">文件内容</textarea> <br><p id="downloadify">이 파일을 다운로드하려면 Flash 10이 설치되어 있어야 합니다.</p> <br></body> <br></html><br> </div>