December 20, 201312 yr Hi, I am having some trouble embedding youtube videos. I of course know about the simple embed code within youtube itself but I am trying to replicate the videos (not coded by me) that are present here: http://jamesgoodwin.co.uk/new-site/listen.html and add new clips (along the bottom row) The code is: <object width="300" height="300" style="float: left;padding: 5px;"> <param name="movie" value="http://www.youtube.com/watch?v=5bwdxPw3qNI&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <embed src="http://www.youtube.com/watch?v=5bwdxPw3qNI&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1" width="300" height="300" align="middle" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed> </object> I have tried copying the code above and replacing the youtube URL unique to a different video within the 'value' and the 'embed src' tags but this doesn't seem to work. Can anyone advise how to replicate this kind of embedding method with other video clips? It would be greatly appreciated. Sam
December 20, 201312 yr I don't know if this is your problem, but when using the object tag I think you need to make sure that the src attribute is a flash file (not the youtube html page you would use for iframe embedding). Go to the youtube page of the video you wish to embed, select share>embed and check "Use old embed code". This will generate the code you need. Edited December 20, 201312 yr by Nillervision
Create an account or sign in to comment