Hy
please see my code , i use one solution from this link:
http://www.zen-cart.com/forum/showth...ght=java+flash
now this is my code:
Header file : tpl_header.php
C:\xampp\htdocs\sahil\includes\templates\NEW_TEMPL ATES\common
Java Script :banner.js
path:C:\xampp\htdocs\sahil\includes\templates\NEW_ TEMPLATES\jscript
Flash file :banner.swf
path: C:\xampp\htdocs\sahil\includes\templates\NEW_TEMPL ATES\images
+ C:\xampp\htdocs\sahil\\images
Header file code
------------------------------------------------------------------------
#####################################
<!-- code to call flash file from java script : start -->
<script src="includes/templates/NEW_TEMPLATES/jscript/banner.js"></script>
<!-- code to call flash file from java script : end -->
<table width="758" border="0" align="center" cellpadding= etc>
BANNER.js file code
------------------------------------------------------------------------
#####################################
document.write('hello'); // this comes on page ,its for testing only
document.write('<OBJECT classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write('WIDTH="300" HEIGHT="156" id="banner" ALIGN="">');
document.write('<PARAM NAME=movie VALUE="banner.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#> <EMBED src="banner.swf" loop=false menu=false quality=high bgcolor=# WIDTH="300" HEIGHT="156" NAME="banner" ALIGN=""');
document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
document.write('</OBJECT>');
but i am not able to get swf in IE or FF . it shows only one blank white area(textarea type)
waiting for your reply.
Thanks



