By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

Problem with uploading a css background image

P: 1
I need to preload a image in css thats in my background. Some one help me out!!!
Feb 14 '07 #1
Share this Question
Share on Google+
3 Replies


Tog
P: 11
Tog
Hello,

You might find what you are looking for at:
http://www.javascriptkit.com/dhtmltutors/cssreference.shtml
which is a good css reference source.

Regards

Tog
Feb 14 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
Place the img tags at the beginning, right under the <body> tag:

<img src="image1.gif" style="display:none;" alt=""/>
<img src="image2.gif" style="display:none;" alt=""/>
Feb 14 '07 #3

Expert 100+
P: 1,892
You can use Javascript to do this:
Expand|Select|Wrap|Line Numbers
  1. <script language="Javascript">
  2. function PreloadImages()
  3. {
  4. var objNewImage = New Image();
  5. objNewImage.src = "images/testimage.jpg";
  6. }
  7.  
HTH,
Aric
Feb 14 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.