web page sound.

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

web page sound.

Post 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]
roving cowboy/ keith
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

web page sound.

Post 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
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

web page sound.

Post 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
roving cowboy/ keith
megaspaz
Posts: 340
Joined: Wed Dec 18, 2002 10:08 pm

web page sound.

Post 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
Image
Resistance is futile...

Registered Linux User #321628
Anime/Toon Avatars
Other Cool Forums

"Never hold your farts in. They travel up your spine, into your brain, and that's where you get s**tty ideas from..." - Woyaya - January 10, 2004
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

web page sound.

Post 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
Honk if you love Jesus, text if you want to meet Him!
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

web page sound.

Post 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
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

web page sound.

Post 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
roving cowboy/ keith
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

web page sound.

Post 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
roving cowboy/ keith
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

web page sound.

Post 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
Honk if you love Jesus, text if you want to meet Him!
User avatar
rovingcowboy
Posts: 1504
Joined: Wed Dec 18, 2002 10:14 pm

web page sound.

Post 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
roving cowboy/ keith
Locked