var __silverAlbumServices = null; $(function(A) { page_init() }); function page_init(A) { __silverAlbumServices = new SilverAlbumServices() } function buildSilverAlbum(C, B) { if (__silverAlbumServices == null) { __silverAlbumServices = new SilverAlbumServices() } var D = parseInt($(String.format("#{0}", C)).parent().width()); var A = parseInt(D / 320 * 240); var E = $(String.format("#{0}", C)); displayLoading(E, false); __silverAlbumServices.getSilverAlbum(B, D, A, getSilverAlbum_success, callback_error, { swfContainerId: C, swfWidth: D, swfHeight: A }) } function getSilverAlbum_success(result, userContext) { result = eval("(" + result + ")"); var swfContainer = $(String.format("#{0}", userContext.swfContainerId)); displayLoading(swfContainer, true); if (result.type == PopupMessageType.Success) { var silverAlbum = result.customData; var flashvars = { musicUrl: silverAlbum.musicUrl, frameId: silverAlbum.frameId, effectsId: silverAlbum.effectsId, images: silverAlbum.images, titles: silverAlbum.titles }; var params = { menu: "false", wmode: "transparent" }; var attributes = { id: userContext.swfContainerId, name: userContext.swfContainerId }; swfobject.embedSWF(String.format("{0}?randId={1}", "/Common/Flash/enjooSiteSilverAlbum.swf", Math.random()), userContext.swfContainerId, userContext.swfWidth, userContext.swfHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes) } else { swfContainer.html("当前相册已关闭或删除.") } } if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };