Autoplay music in iWeb

drumpat01

macrumors 6502
Original poster
Jul 31, 2004
430
0
Denton, TX
Hey is there anyway to make an iWeb page auto start playing an audio file as soon as the page is loaded? Maybe im just really missing something obvious, but whenever I publish the site, it never auto plays, i have to click play.
 

lad1509

macrumors member
Apr 1, 2006
47
0
drumpat01 said:
Hey is there anyway to make an iWeb page auto start playing an audio file as soon as the page is loaded? Maybe im just really missing something obvious, but whenever I publish the site, it never auto plays, i have to click play.
but it auto downloads it witch I do not want it to do.

so it would be great if we can figure out 2 things.

1- how we can make a music file auto play.
2-how can we nake a file not download unless the user clicks on it.

thanks
 

cansokevin

macrumors newbie
Jun 14, 2008
2
0
Iweb Music

Has Anyone Actually Answered This Question Because I Was Wondering The Same Thing.
 

thinksergio

macrumors newbie
Mar 23, 2010
1
0
Chicago
Here's a sample page from my iWeb site with an mp3 set to loop when you open it:

http://thinksergio.com/example/about.html

It's nothing special, but now that I figured it out I'm going to find the right audio to add to my pages.

I was able to get the mp3 to autoplay using the html snippet below. You'll need to upload an audio file onto your iDisk or host site and change the area in red to where ever you placed the audio file.

<script>
function EvalSound(soundobj) {var thissound= eval("document."+soundobj);thissound.Play();}
</script>

<embed src="http://thinksergio.com/audio/button2.mp3" loop=true width=0 height=0 name="sound1" enablejavascript="true"/>
</a>
 

oinkalena8

macrumors newbie
May 30, 2011
4
0
it's easy

Just go to "show media", click Music and pick the song you want and drag it in. Then go to inspector and click the quicktime button, and click loop and autoplay. ;)