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

Hide Image but let it download

P: 14
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.

Share this Question
Share on Google+
1 Reply


P: 62
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.