Forum Moderators: open

Message Too Old, No Replies

embedded youtube videos won't play in IE7

         

elias75

12:47 pm on Aug 6, 2009 (gmt 0)

10+ Year Member



works like charm in FF but in IE7 you only get to see a blanc square with the usual red x on the top left. It was playing fine in IE6 and I have also tried it on other PC's so it is definitely something not related with my PC....

Always a newbie in html etc.... I am building my pages with dreamweaver and here is an example of the embedded code

<script type="text/javascript">
AC_AX_RunContent( 'width','250','height','250','src','http://www.youtube.com/v/XIVAGY3Jvuc&hl=en&fs=1','type','application/x-shockwave-flash','allowscriptaccess','always','allowfullscreen','true','movie','http://www.youtube.com/v/XIVAGY3Jvuc&hl=en&fs=1' ); //end AC code
</script><noscript><object width="250" height="250">
<param name="movie" value="http://www.youtube.com/v/XIVAGY3Jvuc&hl=en&fs=1" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="http://www.youtube.com/v/XIVAGY3Jvuc&hl=en&fs=1" width="250" height="250" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed>
</object></noscript>

any ideas on how this can be fixed?

rocknbil

3:47 pm on Aug 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this is one of those cases where Dreamweaver is "the problem" (or, the user's understanding of what it's doing.)

That Javascript "AC_AX_RunContent..." is probably what's hosing up the works. For YouTube video, you can go to your video on YouTube and just copy and paste that code, eliminating everything else. It's not valid code (an <embed> inside <object>) but it will get the job done.

<object width="250" height="250"><param name="movie" value="http://www.youtube.com/your youtube video url"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.comyour youtube video url" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="250" height="250"></embed></object>

[edited by: eelixduppy at 6:01 am (utc) on Aug. 8, 2009]
[edit reason] disabled smileys [/edit]

elias75

1:38 pm on Aug 11, 2009 (gmt 0)

10+ Year Member



thanks rocknbil for your answer! problem fixed! :)