Music on the Site - Additional Features - uCoz System management and tuning - uCoz Community
You logged in as Guest
Username/E-mail:
Recent messages · Members · Forum rules · FAQ · SEARCH Registration · Log in


We are in the second round! Let's keep voting!

Page 8 of 8«12678
uCoz Community » uCoz System management and tuning » Additional Features » Music on the Site (How to add music .mp3, playlist so on...)
Music on the Site
SunnyDate: Wednesday, 2008-03-19, 6:28 Am | Message # 1
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
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 "man", "sir" or whatever. I'm female!
    About signatures, screenshots etc...
  •  
    SnakeDate: Wednesday, 2009-09-23, 7:40 Am | Message # 106
    Newbie
    Group: Users
    Messages: 3
    Awards: 0
    Reputation: 0
    Status: Offline
    Hello everybody
    I added the Deezer module on my site , it works perfect
    www.deezer.com , you will need to register your account and create a playlist
    But the question is : is it possible to play the music meanwhile we are on other menues
    Actually the music only plays on the main page and i would like it to play all the time
    thanks
     
    SunnyDate: Wednesday, 2009-09-23, 8:06 Am | Message # 107
    Haunter
    Group: Administrators
    Messages: 2016
    Awards: 121
    Reputation: 139
    Status: Offline
    Snake, if you are using a third-party player then address all your questions to them. We can't help you here.

    I'm not "man", "sir" or whatever. I'm female!
    About signatures, screenshots etc...
     
    TanKerKDate: Sunday, 2009-09-27, 7:41 Am | Message # 108
    Newbie
    Group: Users
    Messages: 3
    Awards: 0
    Reputation: 0
    Status: Offline
    hi

    i have add a mp3 on my main page but the sound is strong
    It's not possible to decrease volume ?

    My site : http://celestal.ucoz.com/

    Code use :

    Code
    <script src="http://celestal.ucoz.com/media/?auto=1;small=0;color=ff0000;loop=1;textoff=0;t=audio;f=http%3A//celestal.ucoz.com/CraigArmstrong-EscapeRemixAnuncioSeatLeon.mp3" type="text/javascript"></script>


    Message edited by TanKerK - Sunday, 2009-09-27, 7:42 Am
     
    SunnyDate: Monday, 2009-09-28, 2:49 Am | Message # 109
    Haunter
    Group: Administrators
    Messages: 2016
    Awards: 121
    Reputation: 139
    Status: Offline
    Quote (TanKerK)
    It's not possible to decrease volume ?

    And how is this related to uCoz? If you want to decrease volume, decrease it on your PC.


    I'm not "man", "sir" or whatever. I'm female!
    About signatures, screenshots etc...
     
    NTPDate: Sunday, 2009-11-15, 8:18 Pm | Message # 110
    Curious
    Group: Checked
    Messages: 24
    Awards: 0
    Reputation: 0
    Status: Offline
    i can't get the background music to work
     
    DartzDate: Sunday, 2009-11-15, 9:21 Pm | Message # 111
    Cookie Monster
    Group: Head Mod
    Messages: 5961
    Awards: 61
    Status: Offline
    And what you expect us to do? We provided all information you need, re-read.


    *Yawn... drools on Renatus while sleeping...*
    SunnyDate: Monday, 2009-11-16, 5:01 Am | Message # 112
    Haunter
    Group: Administrators
    Messages: 2016
    Awards: 121
    Reputation: 139
    Status: Offline
    Or at least be more specific.

    I'm not "man", "sir" or whatever. I'm female!
    About signatures, screenshots etc...
     
    NTPDate: Monday, 2009-11-16, 9:08 Pm | Message # 113
    Curious
    Group: Checked
    Messages: 24
    Awards: 0
    Reputation: 0
    Status: Offline
    I tried putting the music on my site, including a music url, but i don't hear anything
     
    DartzDate: Monday, 2009-11-16, 11:07 Pm | Message # 114
    Cookie Monster
    Group: Head Mod
    Messages: 5961
    Awards: 61
    Status: Offline
    Tried to turn on volume? If yes, provide code you're trying to use.


    *Yawn... drools on Renatus while sleeping...*
    uCoz Community » uCoz System management and tuning » Additional Features » Music on the Site (How to add music .mp3, playlist so on...)
    Page 8 of 8«12678
    Search: