Preloading images in a MasterPage

C

Charlie@CBFC

Hi:

Before MasterPage, I preloaded images for rollovers in HEAD section no
problem. Doesn't seem to work with MasterPage. Using same code, images
never load. Always pulled from disk. Am I missing something?

Thanks,
Charlie
 
G

Guest

Hi:

Before MasterPage, I preloaded images for rollovers in HEAD section no
problem. Doesn't seem to work with MasterPage. Using same code, images
never load. Always pulled from disk. Am I missing something?

Thanks,
Charlie

Post the code here, please.
 
C

Charlie@CBFC

Thanks for responding. Here is the HEAD section...

<head>

<title>CBF Consulting LLC</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">

<script>
if (document.images)
{
CustomerVehicleSmallOver = new Image();
CustomerVehicleSmallOver.src =
"Images/CustomerVehicleSmallOver.jpg";

HistorySmallOver = new Image();
HistorySmallOver.src = "Images/HistorySmallOver.jpg";

PartsEditorSmallOver = new Image();
PartsEditorSmallOver.src = "Images/PartsEditorSmallOver.jpg";

InvoiceSmallOver = new Image();
InvoiceSmallOver.src = "Images/InvoiceSmallOver.jpg";

AboutMeOver = new Image();
AboutMeOver.src = "TabImages/AboutMeOver.jpg";

CustomSoftwareOver = new Image();
CustomSoftwareOver.src = "TabImages/CustomSoftwareOver.jpg";

ECommerceOver = new Image();
ECommerceOver.src = "TabImages/ECommerceOver.jpg";

WebSitesOver.jpg = new Image();
WebSitesOver.jpg.src = "TabImages/WebSitesOver.jpg";

AutoPOSover = new Image();
AutoPOSover.src = "TabImages/AutoPOSover.jpg";

ContactMeOver.jpg = new Image();
ContactMeOver.jpg.src = "TabImages/ContactMeOver.jpg";

}
</script>

</head>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top