Sound on Site Entry - Post ID 274405


Registered User
9 posts

Hello and thanx for reading. I'm using Visual Site Designer, and I was wondering if there was a way to play a sound file every time someone visits my homepage. Any help or suggestions would be appreciated. Thank you in advance for your insights.

Scott


Senior Advisor
11,005 posts
Online Now

First of all I want to warn against that. If I happen upon a site which greets me with blaring noise, I'm out of there quicker than you can think.

Having said that, and if you insist on having sound playing when entering your site, you can achieve that with CC jukebox. But please also create an easily spotted stop button for people like me ;)
Ha en riktig god dag!
Inger, Norway
My new honey site, built with RFF: http://www.horgenhonning.net/
Component sharing for RSD, RFF and RBB: http://www.horgenhonning.net/sharing/



Senior Advisor
3,816 posts

John - that's one of the best ways to make sure people leave your site as soon as they find it :lol:
People browse the 'net at work, in public places... and they don't always remember to turn the volume off - hence the need to exit quickly. Also, some of us listen to our own music, so would prefer an option to turn on the site's audio, rather than scramble for an off button :o
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com


Senior Advisor
17,825 posts
Online Now

John Eaton wrote:
Hello and thanx for reading. I'm using Visual Site Designer, and I was wondering if there was a way to play a sound file every time someone visits my homepage. Any help or suggestions would be appreciated. Thank you in advance for your insights.

Scott

I agree with most that you need to be careful with sounds playing on a web site. There're times when they work to set an atmosphere.
Use CC jukebox.
I have some low soothing nature sounds on the home page of a campground I take care of.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Guest
5,410 posts

I prefer to have the option to listen if I choose to, without the music/sound automatically starting.
CoffeeCup... Yeah, they are the best!


Ambassador
151 posts

All that is good advice but since it is your website and you can do whatever you want:


<audio autoplay="autoplay">
<source src="musicfile.ogg" type="audio/ogg" />
Your browser does not support the audio element.
</audio>

Please note that this is HTML5 so currently It doesn't work in Microsoft IE. Also, I have never had any success playing an .mp3 file (only .ogg files) using the HTML5 audio tag (Although to be honest it hasn't been much effort for the reasons everyone else has articulated above) in Firefox.
Additional note you may be interested in playing with the controls attribute (controls="controls")
Who is John Gault?


Registered User
9 posts

Thanx alot for your insight everyone, I really appreciate it. As to my site, what I am wanting usa soft feminine voice that says" welcome" or something similar. Not any music. I can definitely see where your coming from on that tho. So CC jukebox will do the trick ey? Awesome and thanx again everyone


Registered User
4 posts



Joseph Betters
Registered User

Mr. Abbott's answer answered my question about audio not working in IE. I decided to post this to show .wav files do work with the audio tag in HTML5. At least in FF. If anyone has found a way to make the audio tag work in IE11 please let me know.
I'm useing about 30 sec of sound.
Thanks for taking time to read this.

<audio controls autoplay>
<source src="http://www.saltairvillage.net/sound/JoeMerrickGoodnightCapeCodsection.wav" type="audio/wav">
<source src="http://www.saltairvillage.net/sound/JoeMerrickGoodnightCapeCodsection.wav" type="audio/wav">
Your browser does not support the audio tag.
</audio>


Senior Advisor
17,825 posts
Online Now

http://progrower.coffeecup.com/music.html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
4 posts

:)Update to post on the audio tag in HTML5 and IE.
Just found out mp3 format works in IE11 and FF using the HTML5 audio tag.

<audio controls autoplay>
<source src="http://www.saltairvillage.net/sound/JoeMerrickGoodnightCapeCodsection.mp3" type="audio/mp3">
<source src="http://www.saltairvillage.net/sound/JoeMerrickGoodnightCapeCodsection.mp3" type="audio/mp3">
Your browser does not support the audio tag.
</audio>

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.