![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2009
Posts: 45
OS: VistaPremium
|
How can I link (using the HTML tag <a>) to a file on my computer? I know that the link will only work for me...
<a href="C:\Users\User\Music\file.mp3">File.mp3</a> <a href="file\\\C:\Users\User\Music\file.mp3">File.mp3</a> Nothing works. I am using IE and I have allowed content of my computer to be displayed in the Internet options. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#4 (permalink) |
|
Design Team Member
|
Re: Link to computer files
This web page is physically on your computer, right?
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Link to computer files
That's why then, if the HTML file was local it would work but if your browser allowed opening of local files from a remote site it would pose a massive security risk. Hence it not working.
|
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Oct 2009
Posts: 45
OS: VistaPremium
|
Re: Link to computer files
Doooh! I could make an HTML file, save it on my computer, and use it instead of the free hosting website. Would that work? I mean, I would be the only one able to see it, but that's my intention.
That way I could have a website without paying anything nor using any hosting site, is that true? Of course I would be the only one able to see it. That would be great. It's just a stupid custom homepage, with some links and a search box... |
|
|
|
|
|
#13 (permalink) |
|
Manager, Design
|
Re: Link to computer files
Right-click and select save-sa to save it to a location. Right now Media Player is set to automatically handle media links in web pages.
__________________
![]() ![]() ----------------------------- There are no dumb questions, unless a customer is asking them. Help in the fight against cancer and other serious illnesses. |
|
|
|
|
|
#14 (permalink) | |
|
Registered User
Join Date: Oct 2009
Posts: 45
OS: VistaPremium
|
Re: Link to computer files
Quote:
Maybe it's something in the Internet tools... Come on...
|
|
|
|
|
|
|
#15 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Link to computer files
No the problem is how your browser deals with .mp3 files... Which is what ebackhus was on about. So how do you want the .mp3 files to open?
And what is the HTML code you're using right now? If something is happening then the easiest way to check that it's working correctly is: - Internet Options->Programs Tab - Click "Set Programs" under the "Internet Programs" section - Check that .mp3 files are associated correctly If all that's right then the problem is probably with the HTML file or the .mp3 location, so post your code up and we'll try to help =] Cheers, Jamey |
|
|
|
|
|
#16 (permalink) |
|
Registered User
Join Date: Oct 2009
Posts: 45
OS: VistaPremium
|
Re: Link to computer files
I'm sorry ebackhus I didn't understand. :)
I have set windows media player to open mp3 files... That's how it was. My code: Code:
<!DOCTYPE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> ... <body> ... <div class="m"><a href="C:\Users\User\Music\File.mp3">File</a></div> ... </body></html> I have tried the file\\\ thing too... Thanks. |
|
|
|
|
|
#17 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Link to computer files
Change it to:
Code:
<a href="file://C:\Users\User\Music\File.mp3">File</a> |
|
|
|
|
|
#19 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Link to computer files
Is C:\Users\User\Music\File.mp3 the URL of the file you wish to serve? This looks like more of a placeholder or demonstration text than a real URL. If this is in fact not the URL of the file, then replace this URL with the URL of the file.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
![]() |
| Thread Tools | |
|
|