uCoz Community » uCoz Modules » Additional Features » Music on the Site (How to add music .mp3, playlist so on...)
Music on the Site
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 12:28 PM
You can insert mp3 player into any page or message. It may serve to let visitors listen to various compositions. It may be a background for you site (do not abuse this capability, don’t forget that mp3 files weight quite a lot, and not all users have broadband Internet access. They won’t be able to load your site in case of automatic playback)

It is used in the following way:
By means of the BB-code:

Code
[audio] [/audio]

Having entered the following
Code
[audio]http://forum.ucoz.com/i_love_ucoz.mp3[/audio]

we'll get

You can also insert a player with the help of JS-code.
To get it use Multimedia - > Insert audio (mp3)
or Multimedia - > Upload audio (mp3) [after uploading press JS-code near necessary file]
As a result, for the mp3 file at http://forum.ucoz.com/i_love_ucoz.mp3
we'll get the following code

Code
<script src="http://forum.ucoz.com/media/?auto=0;small=0;color=0055e9;textoff=0;t=audio;f=http%3A%2F%2Fforum.ucoz.com%2Fi_love_ucoz.mp3" type="text/javascript"></script>

You can also insert it into any place of your site. Besides, it has controlled parameters (settings), which we’ll describe below.

Quote
auto=0;small=0;color=0055e9;loop=0;textoff=0

Values in bold type may be changed from 0 to 1. In this way, you’ll enable them. By means of "color" specify code color.
So, if we change in the code
auto=0 for auto=1 - a song will be played automatically (be careful with this feature, think of those who have slow Internet and paid traffic).

small=1 – will display a small player of two buttons. Here it is:

loop=1 – a file will be played back non-stop (till you press stop)

textoff=1 – will remove text (e.g. "i_love_ucoz.mp3" in the example above)

color=0055e9 (player color management) –instead of 0055e9 write the code of a desired color. Codes can be found out from tables or in Photoshop by clicking on a color.
Example. Let’s take the code of the black color - 000000

Code
<script src="http://forum.ucoz.com/media/?auto=0;small=0;color=000000;textoff=0;t=audio;f=http%3A%2F%2Fforum.ucoz.com%2Fi_love_ucoz.mp3" type="text/javascript"></script>

we'll get:



Music as a background

Code
<bgsound src="URL" loop=5 volume=0 balance=0>

where
URL – file name
loop – number of repeats, if loop="infinite" - unlimited
format - .wav .mid

EMBED tag

It is used to insert into pages multimedia content and other files.

Code
<EMBED attributes> </EMBED>

  • height sets vertical size of embedded object

  • width sets horizontal size of embedded object

  • autostart sets possibility to start while loading, takes on the values "true" or "false"

  • loop sets number of repeats, takes on the values "true" or "false"

  • hidden allows to hide active module, takes on the values "true" or "false"

  • src specifies URL of a multimedia file

  • pluginspage specifies URL of the plug-in for playing back a multimedia file

  • bgcolor sets background of the object

  • type specifies multimedia file type

  • quality specifies multimedia file quality

  • alt sets alternative content

    Code
    <EMBED src="file.swf" menu="true" quality="high" bgcolor="#000066" width="760" height="410" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave"></EMBED>

    As you can see from the example you can insert Flash files, as well as video and audio.

    You can write a code with minimal number of attributes

    Code
    <embed src="video.avi" width="760" height="410">

    Music in a pop-up (new) window

    There is nothing difficult, use JavaScript

    On the page where you want to place the button "Play music" insert the following code between the < head> tags

    Code
    <script>
    function openWindow()
    {
    muzWindow = open("http://www.ucoz.com/music.html", "newWindow", "width=300,height=300, status=no, toolbar=no, menubar=no");
    }
    </script>

  • width=300 height=300 – width, height
  • http://www.ucoz.com/music.html – link to the page with your music

    Then put in any place of the page either the link

    Code

    <a href="#" onClick="openWindow()">Press to play music</a>

    or the button

    Code
    <button onClick="openWindow()">Press to play music</button>

    I'm not active on the forum anymore. Please contact other forum staff.
  • pspunlock
    Posts: 4
    Reputation: 0

    Message # 46 | 1:39 AM
    where put these codes? confused
    Armaros
    Posts: 1424

    Message # 47 | 11:23 AM
    CP -> Customize Design -> Site Pages...

    Or you can add it as entry, but I would suggest to make a block for this.

    pspunlock
    Posts: 4
    Reputation: 0

    Message # 48 | 11:41 AM
    thanks up how a create playlist? help
    iLee
    Posts: 111
    Reputation: 0

    Message # 49 | 11:42 AM
    pspunlock, You can't make a playlist using this. I suggest you use something like

    Playlist
    http://myflashfetish.com


    Use your brain before you post ~Lee
    Please use search, ~Lee
    Post edited by iLee - Saturday, 2009-02-21, 11:43 AM
    pspunlock
    Posts: 4
    Reputation: 0

    Message # 50 | 11:57 AM
    but why,i go to otherwere example to forum or geust book and my music stop sad how to make music play play always help sorry for my english speak shy am from lithuania hello
    Armaros
    Posts: 1424

    Message # 51 | 9:43 PM
    Oh... Well, than you, pspunlock, must create a pop-up window where music will be playing from.
    pspunlock
    Posts: 4
    Reputation: 0

    Message # 52 | 0:03 AM
    how make a pop-up window? help
    Kommandant
    Posts: 1
    Reputation: 0

    Message # 53 | 9:46 PM
    I got a Problem, I got everything working with background music with this code: <embed src="http://cohrealismmod.ucoz.net/Family_Guy_Blue_Harvest_elevator_music.mp3" width="144" height="60" autostart="true" loop="true" hidden="true"></embed>

    But, The music only Plays on Internet Explorer! Sadly i do not use IE. I only use Firefox or Google Chrome. Could you Guys help me Get the music play on firefox / Google Chrome? cry

    Armaros
    Posts: 1424

    Message # 54 | 10:00 PM
    Kommandant, it's probably FireFox settings or you didn't install quick time player which is needed.
    Bengaltiger
    Posts: 57
    Reputation: 1

    Message # 55 | 7:08 PM
    Armaros, biggrin ...can i put 2songs 2gether...????lol
    i meant to say in bakground music... tongue
    Armaros
    Posts: 1424

    Message # 56 | 7:41 PM
    Quote (Bengaltiger)
    can i put 2songs 2gether...?
    Yes...
    Bengaltiger
    Posts: 57
    Reputation: 1

    Message # 57 | 9:44 AM
    how i ill add dat l2ink???
    means how..where????
    Armaros
    Posts: 1424

    Message # 58 | 12:46 PM
    Quote (Bengaltiger)
    how i ill add dat l2ink???
    means how..where????
    Read first post of this thread.

    Quote (hslee81)
    is it must create pop out windows to make music playing non-stop?
    If you don't want music to stop when you refresh or select new page - Yes.

    Quote (hslee81)
    Must press play? can't be auto?
    For one song you can set auto=1 which means song will start after connection.

    Quote (hslee81)
    <--- how to do with this code?
    That's code for link. It wont pop-up automatically.

    Quote (hslee81)
    Is there any other ways?
    For nonstopable music in refreshes - No.
    Bengaltiger
    Posts: 57
    Reputation: 1

    Message # 59 | 5:32 PM
    i didnt get it clrly...
    if i want to put 2 songs together..den should i hav to giv the link of those 2songs together???
    Armaros
    Posts: 1424

    Message # 60 | 6:25 PM
    Quote (Bengaltiger)
    if i want to put 2 songs together..den should i hav to giv the link of those 2songs together???
    No. Each song will have own code. For this matter, I suggest to use:

    Code
    <embed src="---Music--Link---" width="144" height="60" autostart="true" loop="true" hidden="false"></embed>
    uCoz Community » uCoz Modules » Additional Features » Music on the Site (How to add music .mp3, playlist so on...)
    Search: