var __silverAlbumServices = null; $(function(A) { page_init() }); function page_init(A) { } function buildSilverAlbum(C, B, E) { if (__silverAlbumServices == null) { __silverAlbumServices = EnjooSite.Web.Services.Ajax.SilverAlbumHelper } var D = parseInt($(String.format("#systemWidget_{0}>dd>.inner_box", E)).width()); var A = parseInt(D / 320 * 240); var F = $(String.format("#{0}", C)); displayLoading(F, false); __silverAlbumServices.GetSilverAlbum(B, D, A, getSilverAlbum_success, callback_error, { swfContainerId: C, swfWidth: D, swfHeight: A }) } function getSilverAlbum_success(result, userContext, methodName) { result = eval("(" + result + ")"); var swfContainer = $(String.format("#{0}", userContext.swfContainerId)); displayLoading(swfContainer, true); if (result.type == "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: String.format("swf_{0}", userContext.swfContainerId), name: String.format("swf_{0}", userContext.swfContainerId) }; swfobject.embedSWF(String.format("{0}?randId={1}", String.format("{0}Common/Flash/enjooSiteSilverAlbum_view.swf", _rootUrl), Math.random()), userContext.swfContainerId, userContext.swfWidth, userContext.swfHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes) } else { swfContainer.html("当前相册已关闭或删除.") } } function callback_error(B, C, A) { alert(B.get_message()) } if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };