Question:

Is there a way to get music or a youtube vid to PLAY automatically when people go to my (html) website?

by  |  earlier

0 LIKES UnLike

hi all

ive just registered a domain name and am about to start creating my own webpage using html

i am just wondering if there is a way i can get music to play automatically when people go to my page (like on myspace); or alternatively; a way to get youtube videos to play automatically when people go to the page so i can have videos of songs and they then play automatically hten?

please help me as its very important - best answer gets a thousand points cheers

rooster

 Tags:

   Report

1 ANSWERS


  1. To automatically start playing music, you can add an autoplay parameter to the embed tag. This would make the embed tag look something like this: <embed src="url-to-file" autoplay="true">. If you use an object tag, add a param tag that looks like this: <param name="autoplay" value="true">. If "true" doesn't work, try 1 instead.

    To automatically start YouTube videos, start with copying the embed code on YouTube. For the object tag, find the param tag with the name "movie," and add "&autoplay=1" (no quotes) to the end of the url value but before the end quote. Do the same to the url in the embed tag. So both urls should look something like this: "http://youtube.com/stuff&autoplay=1"

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.