Search Latest topics » How to make animated sigs Tue Mar 24, 2009 11:46 pm by DaRrEn» How To Get Your Threads Stickied! Tue Mar 24, 2009 11:45 pm by DaRrEn» how can you be mod? Tue Mar 24, 2009 11:44 pm by DaRrEn» hi im new here Tue Mar 24, 2009 11:43 pm by DaRrEn» hi im Robster01 Tue Mar 24, 2009 11:40 pm by DaRrEn» Rank Color! Tue Mar 24, 2009 11:39 pm by DaRrEn» EFC News Info Tue Mar 24, 2009 11:39 pm by DaRrEn» Insert Background Music Tue Mar 24, 2009 11:37 pm by DaRrEn» name the anything Sun Sep 07, 2008 6:43 pm by DaRrEnAffiliates | 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
You can also control the size of the browser plugin like this:
It's nice that with this solution the visitor can control the 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:
At the end once again be careful when to use html background music. To add this player, go intro your Admin Panel => General => Homepage => Configuration - Homepage Message Comments: 29 | Statistics We have 25 registered users The newest registered user is Ninja Kun1 Our users have posted a total of 1093 messages in 72 subjects Who is Online ? In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest None Most users ever online was 18 on Thu Dec 25, 2008 10:05 pm |

Tue Mar 24, 2009 11:46 pm by 

