//声明全局通用类 var Global = new Object(); Global.Animation = new Object(); /******************************************* * 以下自定全局公共方法 *******************************************/ //常用配置 Global.Virtual = ""; //这个要自己设置,网站的虚拟目录如果没有不填,填写如"/web" Global.RootDomain = "" //这个要自己设置,网站的cookie Domain //声明全局Cookie Global.Animation.Small = ""; //声明网站地址 Global.Site = "http://ava.gxou.com.cn"; Global.LodingHtml = "
"; //取得全局Cookie var globalUserCode___ = $.cookie("UserCode"); Global.UserCode = globalUserCode___ == null ? null : decodeURIComponent(globalUserCode___); var globalUserName____ = $.cookie("UserName"); Global.UserName = globalUserName____ == null ? null : decodeURIComponent(globalUserName____); var globalParentCode____ = $.cookie("ParentCode"); Global.ParentCode = globalParentCode____ == null ? null : decodeURIComponent(globalParentCode____); var globalParentName____ = $.cookie("ParentName"); Global.ParentName = globalParentName____ == null ? null : decodeURIComponent(globalParentName____); var globalUserTypeGuid____ = $.cookie("UserTypeGuid"); Global.UserTypeGuid = globalUserTypeGuid____ == null ? null : decodeURIComponent(globalUserTypeGuid____); var globalUserTypeJson___ = $.cookie("UserTypeJson"); Global.UserType = eval("(" + globalUserTypeJson___ + ")"); var globalDDConfig___ = $.cookie("DDConfig"); Global.DDConfig = eval("(" + globalDDConfig___ + ")"); var defaultImage = document.createElement("img"); defaultImage.src = "http://ava.gxou.com.cn/CSS/NewtonTheme/DefaultSliderImg.png"; window.defaultImage = defaultImage; $(function () { $(".video-photo").css("background-image", "url('http://ava.gxou.com.cn/CSS/NewtonTheme/DefaultImg.png')"); });