YouTube embeded player: change video link with javascript, dynamically?

Try hiding/showing the tag $('div. MainPlayer object').hide().show() This restarts the whole Flash movie in most browsers.

Try hiding/showing the tag. $('div. MainPlayer object').hide().show(); This restarts the whole Flash movie in most browsers.

Thanks, right solution! But i've modified it, a bit: $('. MainPlayer object').hide(); setTimeout(function(){$('.

MainPlayer object').show();},100); some delay is needed. – Anthony Koval' Apr 12 '10 at 14:29.

Instead of using the straight YouTube code, I would use swfobject for cross platform flash embedding. So if you have a video located within this tag: To embed your YouTube video, you do the following: swfobject. EmbedSWF(, "myvideo", "580", "326", "9.0.0"); To change the video, you do this in javascript: swfobject.

RemoveSWF("myvideo"); swfobject. EmbedSWF(>, "myvideo", "580", "326", "9.0.0"); swfobject (which is hosted on google code) takes care of all the cross-plaform flash embedding issues. Alternatively, you can use the YouTube JavaScript API to change your video on the fly.

I think you should use window. Load rather than ready: $(window). Load(function(){ // ....... }.

Instead of using the straight YouTube code, I would use swfobject for cross platform flash embedding. Swfobject (which is hosted on google code) takes care of all the cross-plaform flash embedding issues. Alternatively, you can use the YouTube JavaScript API to change your video on the fly.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions