var __flashBannerServices = null; $(function(A) { page_init() }); function page_init(A) { } function buildFlashBanner(C, B, E) { if (__flashBannerServices == null) { __flashBannerServices = EnjooSite.Web.Services.Ajax.FlashBannerHelper } var D = parseInt($(String.format("#systemWidget_{0}>dd>.inner_box", E)).width()); var A = parseInt(D / 520 * 205); var F = $(String.format("#{0}", C)); displayLoading(F, false); __flashBannerServices.GetFlashBanner(B, getFlashBanner_success, callback_error, { swfContainerId: C, swfWidth: D, swfHeight: A }) } function getFlashBanner_success(result, userContext, methodName) { result = eval("(" + result + ")"); var swfContainer = $(String.format("#{0}", userContext.swfContainerId)); displayLoading(swfContainer, true); if (result.type == "success") { var txt = result.customData.flashBannerImages; var flashvars = { txt: txt }; var params = { menu: "false", wmode: "transparent" }; var attributes = { id: userContext.swfContainerId, name: userContext.swfContainerId }; var flashvars = String.format("txt={0}", txt); var flashObjectString = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{1}" height="{2}" id="myFlashContent_{3}"><param name="wmode" value="transparent" /><param name="movie" value="{0}" /><param name="flashvars" value="{4}" /><!--[if !IE]>--><object type="application/x-shockwave-flash" data="{0}" width="{1}" height="{2}"><param name="flashvars" value={4}" /><!--<![endif]--><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a><!--[if !IE]>--></object><!--<![endif]--></object>'; $(String.format("#{0}", userContext.swfContainerId)).html(String.format(flashObjectString, String.format("{0}?randId={1}", String.format("{0}/Common/Flash/enjooSiteFlashBanner.swf", _rootUrl), Math.random()), userContext.swfWidth, userContext.swfHeight, userContext.swfContainerId, flashvars)) } else { swfContainer.html("当前相册已关闭或删除.") } } function callback_error(B, C, A) { alert(B.get_message()); displayLoading(swfContainer, true) } if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };