Hi,
I'm trying to use SWFObject to show a YouTube flash video when an
image-link is clicked.
Here's the image-link code the user clicks on to open a jQuery dialog
in which the video displays:
<div id="mediaYouTubeVid">
<a id="videoLink" href="#"
onClick="jQuery('#HGTVvideo').dialog('open'); return false;">
<img src="images/youTubeVidWithText.jpg" alt="YouTube video
images
link" /></a>
</div>
<div id="HGTVvideo">
<div id="flashHGTVvid">
</div>
</div>
And the SWF JavaScript code in the head tag:
var so = new SWFObject("http://www.urlToYouTubeVideo.com",
"flashHGTVvid", "500", "405", "9");
so.addVariable("play", "false");
so.write("flashHGTVvid");
Currently all that happens is when the image is clicked on, the jQuery
dialog pops up normally, but the dialog just has the white background
- no video.
I know the video works because prior to employing SWF I just used the
YouTube embedded code in the "HGTVvideo" div and everything worked
fine - except I got the "Press OK to continue loading the contents of
this page." message in IE6, which is why I'm trying to get SWF to
work.
Any help will be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.