Page 1 of 1

web page sound.

Posted: Wed Dec 17, 2003 7:10 pm
by rovingcowboy
B) ok here is the long winded way for adding music to web sites that is not only for IE.


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. :D


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]

web page sound.

Posted: Wed Dec 17, 2003 8:10 pm
by Chris Vogel
If I were to install Quicktime, that would work for me in Firebird. I hate music in Web pages. It ranks high up there in my list of Web page annoyances.

Thanks for sharing though.

Archived topic from Iceteks, old topic ID:1786, old post ID:14954

web page sound.

Posted: Sat Dec 20, 2003 4:36 pm
by rovingcowboy
i was waiting for some one else to reply in this thread but since they are not. i will answer you :D

yes quick time will work it will work in ie also but it needs a plug in from the apple site ever since they made ie 6 as ie 5 and before all used the old style netscape plugins but they have a major secruity flaw and ms decided to stop using them in ie 6 and they did tell all the 3 rd party devlopers to make the changes for their programs to still work with ie. :o

but most did not. :(

the big ones did. :banana:

still music sites done like i did mine are useful in away. since i put playlists up you can start one of them minumize the window open another browser window and surf while listing to the midis on my playlists. i think the shortes list i made was 14 minutes long. :unsure:

but to have the music just start up when the page is done loading and not show the controls for the music player is just :no no no: BAD BAD BAD Web page design.




Archived topic from Iceteks, old topic ID:1786, old post ID:15012

web page sound.

Posted: Sun Dec 21, 2003 11:15 pm
by megaspaz
flash will let you have music on your webpages too and you can get it to work in all browsers with the old netscape embed tags. but i agree with tak, music on websites is plain annoying although, sound fx that go with something like a flash movie is alright by me.

Archived topic from Iceteks, old topic ID:1786, old post ID:15069

web page sound.

Posted: Sun Dec 21, 2003 11:21 pm
by Red Squirrel
I find it funny there's no standard way of playing music though. They should still have it even though it's not a good thing on a web page. I wanted to install the mod that plays midi music of users choice when viewing a profile, but if it only works in IE what's the point.

Archived topic from Iceteks, old topic ID:1786, old post ID:15070

web page sound.

Posted: Sun Dec 21, 2003 11:54 pm
by Chris Vogel
Red Squirrel wrote: I find it funny there's no standard way of playing music though.  They should still have it even though it's not a good thing on a web page.
No they shouldn't. Background music isn't for HTML, and I'm glad they realise that...

Archived topic from Iceteks, old topic ID:1786, old post ID:15072

web page sound.

Posted: Mon Dec 22, 2003 6:45 am
by rovingcowboy
:blink:

You guys just dont seem to be looking and reading the first post in this message thread. :unsure:


As Stated by most everybody on the web. and here.


BACKGROUND MUSIC IS BAD BAD BAD. :angry:



:o :o

How ever the script I put in the First thread is not for background music.

if you ever go to music sites like mine and other archives for midis and other formats. you will see the songs are linked.

most have them for download to your computer, that is because they are archives, with a way to listen to them online before you download them.


MINE IS NOT AN ARCHIVE. Mine is a Music Site that will let the view Pick what song / songs / playlists they want to play.

The music will not start automaticly on my site. Only on the playlists.

The way I made mine with the controls showing for the viewer to use. is the best way that music SHOULD be added to a page.


But Music on the inter net web sites is fine if done with the controls for the view to use showing on the page.

If it starts when you first get to the home page as many places on the web do and they do NOT show the controls, then THAT IS A BADLY DESIGNED SITE.


B) B)

I hope I stressed what i was saying and meaning enough times and different ways that you can now understand what i meant. :awesome:

:)




Archived topic from Iceteks, old topic ID:1786, old post ID:15081

web page sound.

Posted: Mon Dec 22, 2003 6:49 am
by rovingcowboy
Red Squirrel wrote: I find it funny there's no standard way of playing music though. They should still have it even though it's not a good thing on a web page. I wanted to install the mod that plays midi music of users choice when viewing a profile, but if it only works in IE what's the point.
:o

but red.

the embed tags are the standard way.


ms was just trying to mussel in on it with the bground tag.


and flash is new and is another option. but the embed is the standard way it is done. B)

Archived topic from Iceteks, old topic ID:1786, old post ID:15082

web page sound.

Posted: Mon Dec 22, 2003 11:21 am
by Red Squirrel
Nope, even embed is not standard. It only works in IE. The only way to be sure is to use flash, but if you want an environement where the sound file is chosen "on the fly" then you can't use flash, or anything, for that matter. An example of this would be that the user inputs a file to be uploaded so that it plays, but it would require that someone takes the file and puts it in flash first.

Archived topic from Iceteks, old topic ID:1786, old post ID:15085

web page sound.

Posted: Tue Dec 23, 2003 3:53 pm
by rovingcowboy
Red Squirrel wrote: Nope, even embed is not standard. It only works in IE.
red? embed is a netscape tag also. if your not getting them in your browser then it is your browser that does not support them. there are a few that choose not to use them.

i said it was standard because 98% of the people out there use either netscape or ie. or one of the others that does support them.

but the only tag that is made by ms and for only ms is the bgsound tag. :)

Archived topic from Iceteks, old topic ID:1786, old post ID:15140