示例#1
0
        private void CreateEventScript(JsonFunction targetFunction, JsonTab tabDefinition)
        {
            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_mid",
                tabDefinition.GetTabImageUrl("MiddleSection"));

            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_left",
                tabDefinition.GetTabImageUrl("FirstSide"));

            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_right",
                tabDefinition.GetTabImageUrl("LastSide"));

            //this.AddJsonFunction(targetFunction);
        }
示例#2
0
        private HtmlGenericControl GetPreLoadControl(JsonTab mouseOverTemp, string imageName)
        {
            HtmlGenericControl preload = new HtmlGenericControl("span");

            preload.Attributes.Add("id", this.JsonId + "_preload_" + imageName);
            preload.Style.Add("position", "absolute");
            preload.Style.Add("top", "-1000");
            preload.Style.Add("left", "-1000");
            preload.Style.Add(HtmlTextWriterStyle.BackgroundImage, string.Format("url('{0}')", mouseOverTemp.GetTabImageUrl(imageName)));

            return(preload);
        }
示例#3
0
        private HtmlGenericControl GetPreLoadControl(JsonTab mouseOverTemp, string imageName)
        {
            HtmlGenericControl preload = new HtmlGenericControl("span");
            preload.Attributes.Add("id", this.JsonId + "_preload_" + imageName);
            preload.Style.Add("position", "absolute");
            preload.Style.Add("top", "-1000");
            preload.Style.Add("left", "-1000");
            preload.Style.Add(HtmlTextWriterStyle.BackgroundImage, string.Format("url('{0}')", mouseOverTemp.GetTabImageUrl(imageName)));

            return preload;
        }
示例#4
0
        private void CreateEventScript(JsonFunction targetFunction, JsonTab tabDefinition)
        {
            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_mid",
                tabDefinition.GetTabImageUrl("MiddleSection"));

            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_left",
                tabDefinition.GetTabImageUrl("FirstSide"));

            targetFunction.AppendScriptBodyFormat(
                "JSUI.GetElement('{0}').style.backgroundImage = \"url({1})\";",
                this.JsonId + "_right",
                tabDefinition.GetTabImageUrl("LastSide"));

            //this.AddJsonFunction(targetFunction);
        }