Hi,
I am trying to embed video in .swf format.
I need to change the main file:
\includes\templates\template_default\templates\tpl_modules_main_product_image.php
more specifically this part:
<div id="productMainImage" class="centeredContent back">
<?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id'])
. '" target="_blank" onclick="popupWindow(this.href); return false">'
. zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT)
. '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</div>
to embed the video
As far as I understood, I need to create an .swf object (which contains the image,product path, product name, and product id)
this is the .swf object, includes an already public swfobject.js (which detects the flash player):
<script type="text/javascript" src="includes/modules/pages/product_info/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("so_tester.swf", "mymovie", "200", "100", "9", "#336699"); so.write("flashcontent");
</script>
My question is how do I make this work. How do I blend the first part of the code with the last part - the .swf object. Or is there an easier way?
Would really appreciate your help.
Thanks,
F.