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); }
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); }
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; }