/    Sign up×
Community /Pin to ProfileBookmark

How do I stop my music from auto playing?

Every time someone goes to my page with music, it’ll auto start. I’ve tried autostart = “no” and autostart = “false,” but neither works.

Any suggestions?

to post a comment
HTML

10 Comments(s)

Copy linkTweet thisAlerts:
@hooloovoo24Oct 17.2005 — what is the exact line of code you are using?
Copy linkTweet thisAlerts:
@stacywacyauthorOct 17.2005 — <embed src =" 12 Track 12.wma" autostart =" false" loop =" false" />
Copy linkTweet thisAlerts:
@hooloovoo24Oct 17.2005 — are those spaces intentional? Just a question...

otherwise, I don't see why it wouldn't work...but I don't have too much experience with <embed>. Maybe try giving it a width/height?
Copy linkTweet thisAlerts:
@stacywacyauthorOct 17.2005 — No, Notepad+ added the spaces. I'll take them out tonight to see what happens. I added the height and width in css.
Copy linkTweet thisAlerts:
@hooloovoo24Oct 17.2005 — the spaces might be the problem. Well, if you could, let me know what works so I know if I'm helpful or not!
Copy linkTweet thisAlerts:
@stacywacyauthorOct 18.2005 — errr. My Websites act weird sometimes. Last night and this morning it auto played in all the browsers I checked. I tried it again tonight and it only auto played in FF, so I think I can live with that. And, I checked my code again in notepad and notepad++, and there aren't spaces in it; It only looks like it has spaces when viewed with FF.

Thanks for the help.
Copy linkTweet thisAlerts:
@Robert_WellockOct 18.2005 — Try using the <object> element and <param name="AutoStart" value="0" /> it might work.
Copy linkTweet thisAlerts:
@stacywacyauthorOct 18.2005 — Try using the <object> element and <param name="AutoStart" value="0" /> it might work.[/QUOTE]

I tried <object> before but it doesn't work in IE, so I went back to <embed>.

Thanks
Copy linkTweet thisAlerts:
@Robert_WellockOct 18.2005 — Yes, I know it does not always work in M$ that is why I had to create a new XHTML element called <embed /> a lot of it depends on what plugin MIME you use.
Copy linkTweet thisAlerts:
@felgallOct 18.2005 — You should use both object and embed and place one inside the other:

<object><embed></embed></object>

Of course if you have music that you don't went to play automatically then the simplest way to add it to a page is using:

<a href="12Track12.wma">Play</a>
×

Success!

Help @stacywacy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...