Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding Background Music

Featured Replies

OK, so this is a banal question.. an I'm a lil' embarassed to ask, but... how exactly you add a background sound to the website? I found one JavaScript that works both on IE and Firefox (and I need to have it working on as many browsers as possible), however seems like it supports only .mid files. Is having a .mid sound totally essential? I'd prefer MP3s, is there any script that supports that?

Is the player hidden?

You could hide it you really wanted to but that's not advisable as dangreaves92 said - how will people be able to turn the audio off if they didn't want to listen to it?

Why would you even want to have music on your site. Autoplay is not advisable it can get people in trouble if they are viewing your site in a quiet place and accidently have their sound on. 8)

  • Author

I know about all that, but it's the client that wants to have it.

 

So can someone direct me to some script or...?

Quick reply-

 

Get yourself a copy of Swish or Flash,

 

Create a blank scene

Import your music.

create script at frame 1 to play the imported soundclip

Save

Export SWF and embed into html within an appropriate div

 

or

 

Create a blank scene, add two buttons (sound on/off)

Import your music.

create two events in action script to handle play start and play stop

Save

Export SWF and embed into html within an appropriate div

 

Done.

You could just use a flash player such as long tail video, set it to autplay and place it into a div with display:none.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.