Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (24 May 2013 - 05:15 PM) O Dear, Where Are You? Without Your Words This Sb Is ..
@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?

Replying to Need Help adding music to a webpage


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 28 September 2009 - 08:11 AM

play audio in webpageNeed Help adding music to a webpage

Thanks to HTML 5.0 we need not have to worry about plugins available in the clients side...

just use the <audio> and <video>  tags...

http://www.W3schools.Com/tags/html5_audio.Asp

http://www.W3schools.Com/tags/html5_video.Asp

works well in firefox and other browsers which support open standards laid by w3c

if U want a flexible code then use java scripts like this

<!-- START SOUND CODE, DELETE TO REMOVE --><script language="JavaScript" type="text/javascript">If (navigator.AppName == "Microsoft Internet Explorer") {Document.Write('<bgsound src="dawn.Mp3" LOOP="false">');}Else {Document.Write('<embed type="application/x-mplayer2" pluginspage="http://www.Microsoft...s/MediaPlayer/" Name="MediaPlayer" src="dawn.Mp3" AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="1" HEIGHT="1" WIDTH="1" loop="false"><br>');}// End --></script><!-- END SOUND CODE -->

-reply by Prasanth

BooZker

Posted 06 August 2006 - 03:21 AM

Go to my http://ojproductions.net site and listen... you'll hear owls and nighttime sound. Is that what you want, but music? Just copy the HTML if that is what you want. Change it to your song though haha.


And i know Trap17.com hosts .mp3s, but i dont know about astahost. I am sure they do though. If you want a download link just put:

<a href="http://yoursite.com/you_music_file_folder/music_file.mp3">Click Here for music_file.mp3!</a>

Make sure to RIGHT CLICK AND GO TO SAVE TARGET. If you just click it will just start playing in quicktime or some other program. Make sure also that in your HTML and any links that the Caps match. So if you files name is MySong.mp3 make sure to make all link and HTML to match. You can not put a MySong.mp3 and have a link that is mysong.mp3 This is the same with and file. Caps always have to match the code.

austiniskoge

Posted 28 June 2006 - 03:26 PM

Hmm, I ought to try that. I need to host my band's mp3s.

How can you put a link for download?
like the HTML code, please.

erinekath

Posted 15 April 2006 - 11:34 PM

Upload your music and use this code :

<embed src="YOUR MUSIC URL" autostart="true" loop="true" hidden="true">

That's all you need to do. You can also get a music playlist like mine (www.candy-swirls.co.nr)

On my page it's called a music box. But it's still the same. If you need help you can go to www.dorkette.net

It has some tutorials and they're a GREAT help. I hope it works for you!!

Jayson87

Posted 16 March 2006 - 05:00 AM

Try using embed src ? i think it should work. I face the problem of having the browser to stream on the browser instead of making the user download it. Try using embed src , it should work. Also some webhost do not allow you to stream mp3 files but sometimes u can work around them by using wma files or rename wma files to .aspx. Does nto work all the time. but no harm trying

Houdini

Posted 15 March 2006 - 11:09 PM

Do you mean some thing like this Maple Leaf Rag
or this The Entertainer (Scott Joplin)
Or you could use the embed object and that whould work in Firefox or Internet Explorer, just try to google it and it will explain sounds, that bgsound tag is deprecated and only works with Intenet Explorer.

pyost

Posted 15 March 2006 - 10:03 PM

You need something like a Windows Media Player plug-in. It is used on music.aol.com and many other web sites. It's like a small WMP that is in the layout of your page and you can play and stop music by using it. Quite simple.

minnieadkins

Posted 15 March 2006 - 07:30 PM

FTP them usic up to your site and link to it. I'm not very familiar to the tags of playing music, but I assume your code is correct. I don't know the rules on astahost, but you're probably not allowed to host .mp3's even if it isn't available to the public. All they would have to do is look at your source and link to that for the download. Most sights don't allow mp3's unless you go through them and show them that it's a legal file. After saying that you downloaded it on limewire, I doubt getting approved. =/

Good luck with it all.

Here's what a 10 second google turned up: http://www.developin...et/html/mp3.php

Hope this helps.

Jeigh

Posted 15 March 2006 - 07:21 PM

When I read it over, it seemed to imply he wants his users to be able to click on a link and then the music will stream through their browser so they can listen to it. But so they cannot download the music files themselves, nor that it will play automatically in the background upon visiting his site.

ashley512

Posted 15 March 2006 - 07:17 PM

I NEED HELP ON PUTTING MUSIC ON MY WEBSITE!!! THE MUSIC CANNOT BE LOCATED ON MP3 DOWNLOADS !!! Man :( I downloaded the music on my limewire now i have to figure out how the hell am i going to get this mp3 song to a website so i can play as bgsound (example: www.figuremusic.com/song/pwnage.mp3) i need a website where i can like make my music into a website.. its confusing for me to explain........ i need a website where i can like post a music file and if people wants to listen to it they click it for the link to upload the song and listen to it(not downloading) p.s example of the code i need <BGSOUND balance=0 src="http://www.misak24.c...gAboutYou1.mp3" volume=0 loop=100></BGSOUND> the url has to be changed to the song i want people to hear instead of that song i putted i cannot find the .mp3 file for the song i need please help
Add: jon_nammer@hotmail.com if u want me to explain the best i can:( :( :( :( :( :( :( :( :(

what do u mean by that

Review the complete topic (launches new window)