| View previous topic :: View next topic |
| Author |
Message |
max
Joined: 26 Sep 2005 Posts: 1
|
Posted: Mon Sep 26, 2005 6:32 pm Code and MP3s |
|
|
|
| hi i was wondering how you load up an MP3 by using html code, not just by dragging it over. any help or further references would be great. thanks |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Tue Sep 27, 2005 3:57 am |
|
|
|
|
Try this code:
| Code: |
<object id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="filename" value="interview_fox_video.asx">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" value="true">
<param name="ShowDisplay" value="false">
<embed src="interview_fox_video.asx" width="320" height="286" type="application/x-mplayer2" name="MediaPlayer" autostart="1" showcontrols="0" showstatusbar="1" autorewind="1" showdisplay="0">
</embed></object> |
Replace the path (interview_fox_video.asx) to the path of your MP3 file in both places
Last edited by Corey Bryant on Sat Mar 08, 2008 7:40 am; edited 1 time in total |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Mon Oct 03, 2005 5:03 pm |
|
|
|
| DeltaOmega553 wrote: |
| What am I doing wrong? |
Contact Geocities to see if they allow you to hotlink. A lot of free webhosting companies prevent hotlinking giles because this takes up too much of their bandwidth and they do not get any advertisement for it |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Mon Oct 03, 2005 5:15 pm |
|
|
|
I doubt it. I think I read somewhere Geocities doesn't allow image hotlinking and if that's true, then i'm sure they wouldn't allow music hotlinking too.
do you know of any free web hosting sites that do allow hotlinking so I can put my music up? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Mon Oct 03, 2005 5:44 pm |
|
|
|
Hotlinking is hotlinking - usually there is no difference between the type of files.
As far as free websites - no I have not used a free webhosts in about eight years. You might search this site for free wehosts or google that to see what is out there |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Mon Oct 03, 2005 6:36 pm |
|
|
|
thank you corey...
you've been an enormous help to me...
i appreciate it.  |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Tue Oct 04, 2005 8:29 am |
|
|
|
| are there any alternatives other than using hotlinking to allow custom music be played on your my space profile when somebody loads it? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Tue Oct 04, 2005 8:41 am |
|
|
|
| I am not familiar with myspace at all, but if they allow you to upload fils that would be it. But myspace has their own forums as well - you might find useful information there |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Tue Oct 04, 2005 9:03 am |
|
|
|
Ok. I found a web host that allows me to hotlink.
here is my "my space" profile:
http://www.myspace.com/31409160
I used the code you wrote above but when the page loads... a) the song doesn't play and b) there's ugly code above the player that's supposed to play the song.
what's going on? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Tue Oct 04, 2005 9:25 am |
|
|
|
| DeltaOmega553 wrote: |
| I used the code you wrote above but when the page loads... a) the song doesn't play |
Is this a WMV, WAV, MOV, an MP3, WMA, a RAM, MIDI file that you are trying to play?
| DeltaOmega553 wrote: |
| b) there's ugly code above the player that's supposed to play the song. |
You did not copy the code properly. Recheck the copying / pasting of the code |
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Tue Oct 04, 2005 10:05 am |
|
|
|
| this is an mp3 file. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Tue Oct 04, 2005 10:15 am |
|
|
|
If you look at your code, you did not copy it correctly. Right now, the parsed code is:
| Code: |
.. id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab..Version=6,4,7,1112">
<param name="filename" VALUE="http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3">
<param name="autoStart" VALUE="true">
<param name="showControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" VALUE="true">
<param name="ShowDisplay" VALUE="false">
<embed allowScriptAccess="never"src="http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showc..0 showstatusbar=1 autorewind=1 showdisplay=0>
</embed></object> |
|
|
DeltaOmega553
Joined: 03 Oct 2005 Posts: 9
|
Posted: Tue Oct 04, 2005 10:31 am |
|
|
|
Something's not right.
I copy and pasted this:
<object id="MediaPlayer" width=320 height=286
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param name="filename" VALUE="interview_fox_video.asx">
<param name="autoStart" VALUE="true">
<param name="showControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<param name="Autorewind" VALUE="true">
<param name="ShowDisplay" VALUE="false">
<embed src="interview_fox_video.asx" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</embed></object>
and replaced "interview_fox_video.asx" with my direct link which is this:
http://home.ripway.com/2005-10/458592/ParagonX9-Sonic3BossBattle.mp3
however once I do that and hit "submit"... the code automatically changes itself to what you pasted to me. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Tue Oct 04, 2005 10:34 am |
|
|
|
| You will have to contact myspace and ask them. |
|
|