473,414 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 1363
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

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

Similar topics

2
by: Keiron Waites | last post by:
Hi, Is there any JavaScript that can force the download of an image or a list of images before the HTML, or any other images are downloaded? This is necessary so I can force the background image...
0
by: Jake | last post by:
How can I force an image download with IE using ASP.net?? Here is the catch: the image I want to force a write with is located on another web server. I can only reference the image with a URL. ...
1
by: Adam | last post by:
I am having difficulty retrieving images from a SQL database. Here is the code I use to UPLOAD the image to the database: <form id="Form1" method="post" enctype="multipart/form-data"...
6
by: Buz Waitz | last post by:
For some reason, even though all of my jpgs and gifs download to IE with the html on the stand alone server, and on computers within our peer-to-peer lan; they do not all download to clients over...
7
by: Arturo Buonanni | last post by:
Hi to all, I was wondering if User Agents still downolads images you have marked display: none or visibility: hidden wich CSS. Somebody knows how the major web browsers handles these...
7
by: funkychicken818 | last post by:
Hey well i need help i want to create a simple image downloading script where you insert the image URL and it will download it and place it on your server, and rename the image to some number. Any...
6
by: jesper_lofgren | last post by:
Hi, I wonder if its possible to show and hide a image with javascipt. I want the image to disapear from bottom and up very smooth, maybe under 3-4sec. Is it possible ? any tips ? Thanks
15
by: Baron Samedi | last post by:
Every so often, I see someone wanting to prevent heir images being downloaded and the general consensus is "you can't". Now a friend has asked me to think some more about this, and I think that...
0
by: =?Utf-8?B?Sm9uIEdvbnphbGVz?= | last post by:
I have this email composed using System.Net.SmtpClient. I am successful in attaching image on the email and shows it to the body of the message by using HTML Tag <img src=image.jpg />. But the...
6
by: gs430mw | last post by:
I am trying to hide an image in a formview if the imageurl is blank. Site is driven by database - and if there is nothing in the database as a picture filename then I want to hide the image - If...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.