Type.registerNamespace("Tandan.Portal.HeadNews"); Tandan.Portal.HeadNews = function (element) { Tandan.Portal.HeadNews.initializeBase(this, [element]); }; Tandan.Portal.HeadNews.prototype = { initialize: function () { var element = this.get_element(); $(element).find('.ui-tabs').tabs({ fx: { opacity: "toggle"} }).tabs("rotate", 8000, true); $(element).find('.ui-tabs-nav-item').mouseenter(function () { $(this).find('.tab-button').trigger('click'); }); }, dispose: function () { Tandan.Portal.HeadNews.callBaseMethod(this, "dispose"); } // Name Property Accessors }; Tandan.Portal.HeadNews.registerClass("Tandan.Portal.HeadNews", Sys.UI.Control); if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();