Sunday, July 11, 2010

If you have songs downloaded on your computer, can you turn them into html codes? how?

how do u turn computer downloaded files into html codes so that i can put it on my xanga? if you can't, then PLEASE TELL ME SOME GOOD SITES WHERE I CAN GET MUSIC CODES!!





thank you!

If you have songs downloaded on your computer, can you turn them into html codes? how?
I think at myfilehut.com you can store your files and create codes for them, but not sure.





or here you can get codes:





www.free-musiccodes.com
Reply:ok, being a computer tech, What do you mean? explain yourself... When you say songs, are they in audio format, or are you talking about just the lyrics? And in xanga you can just embed your audio file, or cut and paste the lyrics into the script.
Reply:When you see/hear music on someones's Xanga site, the html that codes the website does not code the music. What the html does is link to a ite where that person has the music stored. This is something you have to do on your own.


SO, unless you have server space to save a music file and then link to it, the html code will not help you. Also, html will not help anyway since music in a website is usually wrtten in Java.
Reply:NO !! HTML codes only texts %26amp; Not others!!





U can LInk or Embed SONgs on html file !!
Reply:its to simple
Reply:Here's how you link to your sound files via HTML.


This is an excerpt from http://www.walthowe.com/pubweb/audio.htm...





Coding Sound in HTML





The simplest way to call a sound file is to simply put a link to the file. Depending on your browser and configuration, it will either invoke your operating system's basic player software, player support built into the browser, or a plug-in that provides the player capability. If you want to control what plug-in is used to play the sound file, you need a more sophisticated call. As an example of the simplest format, the line of HTML code below will call up the file mysong.mid from the current directory with any browser. Note that you can play any sound file with this command format, not just MIDI files:


%26lt;a href="mysong.mid"%26gt; Play My Song %26lt;/a%26gt;





It is also possible to embed a file into the html code for a page so that it will play in the background. Netscape introduced the EMBED tag and Microsoft the BGSOUND. With the newer browsers, both commands can be used and each browser will ignore the other's command. The examples shown here use MIDI files, but you can substitute other file types with the same results. Here are the paired commands to call a MIDI file. In the first example, the Netscape EMBED call forces the use of the Crescendo MIDI player plug-in. The second example allows any MIDI player to take effect instead of the Crescendo. The companion MSIE BGSOUND call does not specifically call Crescendo.





Example 1:


%26lt;EMBED TYPE="music/crescendo" SONG="mysong.mid" HEIGHT=16 WIDTH=16 AUTOSTART=true LOOP=false%26gt; %26lt;BGSOUND SRC="mysong.mid" LOOP=1%26gt;





Example 2:


%26lt;EMBED SRC="mysong.mid" AUTOSTART=true LOOP=false%26gt; %26lt;BGSOUND SRC="mysong.mid" LOOP=1%26gt;





Notice that both EMBED and BGSOUND include a LOOP parameter. Set to "false" and "1" respectively, the file does not repeat. Set to "true" and "-1" or "INFINITE", it repeats endlessly until the page is abandoned or the music turned off. BGSOUND also permits a specific number of repetitions.





Then Microsoft introduced ActiveX and OBJECT tags, and the most general answer that gives the most control is to put an EMBED tag inside OBJECT tags. If you want to try this somewhat more sophisticated approach, the formats that work are explained and illustrated for the Crescendo MIDI player's guide to Embedding Plugins.


No comments:

Post a Comment