<script type="text/javascript" language="javascript">var uploadPath='';
var savePicturePath = '';
$(document).ready(function() {
var subFolder = document.getElementById("no").value;
var year = document.getElementById("year").value;
$('#file_upload').uploadify({
'uploader' : '__PUBLIC__/uploadify/uploadify.swf',
'script' : '__PUBLIC__/uploadify/uploadify.php',
'cancelImg' : '__PUBLIC__/uploadify/cancel.png',
'folder' : '__ROOT__/Picture/uploads',
'auto' : true,
'multi' : true,
'fileExt' : '*.jpg;*.gif;*.png',
'fileDesc' : 'Web Image Files (.JPG, .GIF, .PNG)',
'scriptData' : {'year':year,'subFolder':subFolder},
'buttonText' : 'select pictures',
'onAllComplete' : function(event,data) {
// document.getElementById("upfiles").value = uploadFiles;
location.reload();
}, });
});
</script>在ie8下运行正常,ff也正常。ie6下没加载
var savePicturePath = '';
$(document).ready(function() {
var subFolder = document.getElementById("no").value;
var year = document.getElementById("year").value;
$('#file_upload').uploadify({
'uploader' : '__PUBLIC__/uploadify/uploadify.swf',
'script' : '__PUBLIC__/uploadify/uploadify.php',
'cancelImg' : '__PUBLIC__/uploadify/cancel.png',
'folder' : '__ROOT__/Picture/uploads',
'auto' : true,
'multi' : true,
'fileExt' : '*.jpg;*.gif;*.png',
'fileDesc' : 'Web Image Files (.JPG, .GIF, .PNG)',
'scriptData' : {'year':year,'subFolder':subFolder},
'buttonText' : 'select pictures',
'onAllComplete' : function(event,data) {
// document.getElementById("upfiles").value = uploadFiles;
location.reload();
}, });
});
</script>在ie8下运行正常,ff也正常。ie6下没加载
}, 逗号去掉就行了,真无语