$(function() { var A = '<%= string.Format("swfUploadButton_{0}",Key) %>'; initSWFUpload(swfUploadParams.upload_url, swfUploadParams.flash_url, A); $('<%= string.Format("#swfUploadButton_{0}",Key) %>').click(function() { if ($("#" + _currentTitleTextBoxID).val().trim() != "") { swfu.selectFiles() } else { _showMessage("注意", "请输入图像标题！", "alert") } $(this).blur(); return false }); $("#" + _actionButtonID).click(function() { loadFlashGalleryImages("<%= Key %>", { FlashGalleryImagesListID: _currentFlashGalleryListID, FlashGalleryImageDeleteButtonID: _flashGalleryImageDeleteButtonID }); return false }); $("#" + _actionSaveButtonID).click(function() { if ((B != "") && (D != "")) { var B = $('#<%= string.Format("flashGallery_{0}_Width",Key) %>').val().trim(); var D = $('#<%= string.Format("flashGallery_{0}_Height",Key) %>').val().trim(); var C = $(this).parents("dd").find("object[id='swfObject_<%= Key %>']"); C.attr("height", D + "px"); saveFlashGalleryConfig("<%= Key %>", B, D) } else { _showMessage("注意", "请同时输入相册宽、高数值！", "alert") } return false }) }); if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };