有谁知道我怎样才能将我自己的按钮连接到下载库而不是使用
<div id="downloadify"></div>
我想将它分配给其他一些按钮或元素。所以我可以避免使用它拥有的自定义按钮。
lib 页面中的演示是这样的:
<script type="text/javascript">
Downloadify.create('downloadify',{
filename: function(){
return document.getElementById('filename').value;
},
data: function(){
return document.getElementById('data').value;
},
onComplete: function(){
alert('Your File Has Been Saved!');
},
onCancel: function(){
alert('You have cancelled the saving of this file.');
},
onError: function(){
alert('You must put something in the File Contents or there will be nothing to save!');
},
transparent: false,
swf: 'media/downloadify.swf',
downloadImage: 'images/download.png',
width: 100,
height: 30,
transparent: true,
append: false
});
</script>
可以在这里找到:http: //pixelgraphics.us/downloadify/test.html
提前致谢