this is a table code that i have on my site and used for every song page i made
this will let almost all browsers see song files and play them and let the viewer use the song controls, now it is obvious that doing it this way the song file needs to be in the same web directory as the page. it makes it load faster that way anyway.
Notice the embed tags src means what is to be put on the screen. you see the name of the song here and that is all if you have it in a different web directory you will need to put the url to that directory infront of the song file name.
the align after the name is to align the player in the center of the table cell.
the border and hspace is for the table cell also. the width and height is for showing the player contol on the screen, the autostart is for just that starting the song when the page is loaded or by the click of the player button, false is for making the user click the player button. loop is how many times you want the song to play. false is for only one time of playing if you want more then one in this code you will have to click the button again.
now you see the font codes for color and size and type face. that i use for the name of the song to be shown in the table cell. the code of tr is for table row start. /tr is for stop table row. td is for table display cell.
to see this code in use on my site go to my music site roving cowboys truck music page
and click on any one of the midi song names all my midi pages are like this. except the playlists. they are using m3u files so they are a little different.
Code: Select all
<div align="center"><center>
<table dir="ltr" border="5" cellpadding="5" cellspacing="5">
<tr>
<td><embed src="ActNaturally.mid" align="center"
border="1" hspace="1" width="480" height="45"
autostart="false" loop="false">
<font color="#FFFF00" size="2" face="arial">Act Naturally</font></td>
</tr>
<tr>
<td><embed src="petergunn.mid" align="center" border="1"
hspace="1" width="480" height="45" autostart="false"
loop="false">
<font color="#FFFF00" size="2" face="arial">Peter gunn </font></td>
</tr>
<tr>
<td><embed src="AHardDayNight.mid" align="center"
border="1" hspace="1" width="480" height="45"
autostart="false" loop="false">
<font color="#FFFF00" size="2" face="arial">A Hard Days
Night </font></td>
</tr>
</table>
</center></div>[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:1786, old post ID:14953[/size][/color]