Surprisingly I haven't found very much on this at all.
We have a tabstrip whose tabs are images.
Here is the client side code
<ie:tabstrip id="TabPolicy" onclick="Tabstrip1_SelectedIndexChange" runat="server" AutoPostBack="True"</p>
<p> NAME="Tabstrip1"></p>
<p> <ie:Tab Text="Name" ID="name"></ie:Tab></p>
<p> <ie:Tab Text="Coverage" ID="Coverage"></ie:Tab></p>
<p> <ie:Tab Text="Premium" ID="Premium"></ie:Tab></p>
<p> <ie:Tab Text="Financial" ID="Financial"></ie:Tab></p>
<p> <ie:Tab Text="Tax" ID="Tax"></ie:Tab></p>
<p> <ie:Tab Text="Underwriting" ID="Underwriting"></ie:Tab></p>
<p> <ie:Tab Text="Claims" ID="Claims"></ie:Tab></p>
<p> <ie:Tab Text="Beneficiary" ID="Beneficiary"></ie:Tab></p>
<p> </ie:tabstrip>
and on the server side we are filling each tab object with the image as followed:
</p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Attributes.Add("onclick", "Tabstrip1_SelectedIndexChange();")</font></p>
<p> </p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(0).Text = " "</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(0).SelectedImageUrl = CNFLibrary.ResourceManager.GetMessage("TabNameOpen", CompanyID)</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(0).HoverImageUrl = CNFLibrary.ResourceManager.GetMessage("TabNameOpen", CompanyID)</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(0).DefaultImageUrl = CNFLibrary.ResourceManager.GetMessage("TabNameClosed", CompanyID)</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(1).Text = ""</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(1).SelectedImageUrl = CNFLibrary.ResourceManager.GetMessage("TabCoverageOpen", CompanyID)</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(1).HoverImageUrl = CNFLibrary.ResourceManager.GetMessage("TabCoverageOpen", CompanyID)</font></p>
<p><font size=2><font color=#0000ff>Me</font></font><font size=2>.TabPolicy.Items(1).DefaultImageUrl = CNFLibrary.ResourceManager.GetMessage("TabCoverageClosed", CompanyID)</font></p>
<p></p>
<p>etc...</p>
<p>
Basically we have the image links stored in the DB for localization and the ResourceManager.GetMessage gets the links based on the Key passed in. URLs are all correct.
However, the first time we load the tabstrip it will flicker when you do the hover. How can i preload these images and call them so that the flicker will not happen.
Thanks in advance