469,331 Members | 5,129 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

Problem with uploading a css background image

I need to preload a image in css thats in my background. Some one help me out!!!
Feb 14 '07 #1
3 1248
Tog
11
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
7,435 Expert 4TB
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
AricC
1,892 Expert 1GB
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.

Similar topics

11 posts views Thread by Oliver | last post: by
TheServant
30 posts views Thread by TheServant | last post: by
pezholio
1 post views Thread by pezholio | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.