This is a discussion on "click image to download??" within the Web Page Design section. This forum, and the thread "click image to download?? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
click image to download??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
click image to download??
Not sure if this question really belongs in this forum or not but hey it involves an image. Basically I want people to be able to click on an image & instantly download an mp3. Im using dreamweaver 8. I know how to link the image to the mp3 but that way people have to right click & "save target as" to download. I want people to be able to just click on the image & start the download but I dont know how to set this up. Can any help me out with this???
|
|
|
|
|||
|
Re: click image to download??
Moved to HTML forum.
Last edited by Daniel; Jan 4th, 2007 at 14:42. |
|
|||
|
Re: click image to download??
I dont want the download to start automatically i just want to have a button/image/icon that says "download" and if you click on it it starts the download. Sort of like on this site http://www.download.com/McAfee-SiteA...-10508464.html. Here if you click where it says download now the download starts. I want to set something like that up.
|
|
||||
|
Re: click image to download??
<a href="file-to-be-downloaded.zip">Download File</a>
|
|
||||
|
Re: click image to download??
Or do you want a file to just download instead of it being displayed (or played) in the browser itself?
|
|
|||
|
Re: click image to download??
Thanks. I change the code a little to incoperate the image i want to use. <a href="insert file to be downloaded"><img src="Insert image" /></a>
But with that code if a user was to click on the image to download the file (which is an mp3) it plays it rather than starting the download. the user could start the download by right clicking & chosing "save target as" but I would like to set it up so that when the image is clicked a windows dialog box will pop up starting the download & asking where they would like to save the file. |
|
||||
|
Re: click image to download??
I think you can use PHP to force the download. You'd have to set up a lot of security measures, though. The script is rather dangerous.
|
|
|||
|
Re: click image to download??
Make the the mp3 file into a zip file or even a self executable zip, that way it will download instead of play. I had the same problem with some pps files on my website and making them into a self executing zip file fixed it, if you need help doing that just holler.
|
|
||||
|
Re: click image to download??
Here are some examples of the PHP force download:
http://www.google.com/search?q=PHP%20Force%20Download |
|
|||
|
Re: click image to download??
Thanks for help guys! its much appreciated! Thank you.
|
|
||||
|
Re: click image to download??
It's a zip that opens itself silly =P
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| download, image, mp3 |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Download button - to download a PDF file | attila001122 | Web Page Design | 4 | Aug 15th, 2008 11:44 |
| Moving TD on click of an image | akshitshah | JavaScript Forum | 2 | Sep 24th, 2007 05:31 |
| Flash image link with rollover and sound on click | markmod1 | Flash & Multimedia Forum | 5 | Jun 17th, 2007 19:53 |
| designing a site for batch image upload/download & viewing | zephicus | Starting Out | 1 | Mar 22nd, 2007 10:27 |
| Download | djforemanuk | Introduce Yourself | 1 | Oct 2nd, 2005 15:50 |