 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
curtranhome
Joined: 04 Jun 2008
Posts: 17
|
| Posted: Sat Nov 15, 2008 12:16 pm Download file code |
|
|
Hey people,
I want to try and get my site to download a file when a link is clicked, something like the torrent sites.
can any1 help me plz
thnx alot ahead of time, and srry if this is in the wrong forum |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 1409
Location: Biloxi, MS
|
| Posted: Sat Nov 15, 2008 1:02 pm |
|
|
I don't use torrents at all. Too much malware picked up through them.
If you just want people to download a file, put that file in a format that will trigger the browser's download function. Normally a zipped format will do it: Code: <p><a href="file_name.zip" title="Mouseover Description">Download "File Name" (File Size: XXKb)</a></p> If you have lots of files for download, I recommend using a nice style div container and an unordered list: Code: <div style="width: XXpx; margin: 2%; padding: 5px;">
<h3>Download Files Here:</h3>
<ul>
<li><a href="file_name.zip" title="Mouseover Description">Download "File Name" (File Size: XX Kb)</a></li>
<li><a href="file_name.zip" title="Mouseover Description">Download "File Name" (File Size: XX Kb)</a></li>
<li><a href="file_name.zip" title="Mouseover Description">Download "File Name" (File Size: XX Kb)</a></li>
.
.
.
<li><a href="file_name.zip" title="Mouseover Description">Download "File Name" (File Size: XXKb)</a></li>
</ul>
</div>
|
|
|
curtranhome
Joined: 04 Jun 2008
Posts: 17
|
| Posted: Sat Nov 15, 2008 9:35 pm |
|
|
| ok thank you :D |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 1409
Location: Biloxi, MS
|
| Posted: Sat Nov 15, 2008 9:49 pm |
|
|
| You're welcome. Post back here if you have more questions or code doesn't work for you. |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|