469,325 Members | 1,629 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Hide Image but let it download

Hi,

I am developing a webpage. I want to understand as how do i download image but do not display on webpage.

E.g. I have given onmouseover effect to the buttons. In this case image does not get downloaded unless someone has moved the mouse over the image. In such scenario it takes a while to show the effect of the push button effect.

Regards,
Ritesh
Oct 6 '11 #1

✓ answered by limweizhong

The idea is called "Preloading images in HTML/JavaScript". Search that in Google and you will get what you want.

Other ways:
1. Toggle the visibility of two entirely different image elements, instead of changing the src property.
2. Use a background-image combining both images and use the CSS background-position property.

1 1290
The idea is called "Preloading images in HTML/JavaScript". Search that in Google and you will get what you want.

Other ways:
1. Toggle the visibility of two entirely different image elements, instead of changing the src property.
2. Use a background-image combining both images and use the CSS background-position property.
Oct 6 '11 #2

Post your reply

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

Similar topics

reply views Thread by Jake | last post: by
6 posts views Thread by Buz Waitz | last post: by
7 posts views Thread by Arturo Buonanni | last post: by
7 posts views Thread by funkychicken818 | last post: by
6 posts views Thread by jesper_lofgren | last post: by
15 posts views Thread by Baron Samedi | last post: by
reply views Thread by =?Utf-8?B?Sm9uIEdvbnphbGVz?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.