Insert Background Music
Page 1 of 1
Insert Background Music
Insert Background Music |
Background music Time to time if you want to make your forum more attractive then you can think about adding some nice background music to it. However please don't forget that html background music needs more bandwidth. The usually used mp3 files are small compared to .wav files, but even so much bigger then a normal html page. The W3C not approved <embed>. Besides this it can annoying peoples, even if you make it possible to control the sound. After this introduction let's make some work. Using HTML background music is not a complicated task. You just need to select a sound file. It can be mp3, wav, mid but don't forget that is should be as small as possible. After you have the music it's time to integrate it into your html document. To do this we need to use the <embed> html tag. The <embed> tag inserts a browser plugin into your webpage. This plugin is installed on the client machine. It's time to see a basic html background music integration. Here is a code which plays your sound:
This code simply plays the given .mp3 file as the page is loaded. However if the file ends the music will stop, so you maybe want to set to play music in a loop. Of course you can do this by the loop parameter and as result your code will look like this:
background music, but it destroys your page design. So you maybe want to hide the control panel of the browser plugin. In case of <embed> tag you can also use the hidden parameter as follows:
To add this player, go into your Admin panel General -> Display -> Homepage -> Generalities - Homepage message |
This tutorial was written by Ivanax |
Shadow- Manager
- Posts : 16208
Reputation : 1832
Language : French, English
Similar topics
» How to insert background music in the forum?
» background music
» Background Music?
» Background Music Help
» Music BackGround
» background music
» Background Music?
» Background Music Help
» Music BackGround
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum