Guest Posted June 15, 2009 Share Posted June 15, 2009 Hi All Still quite new to this so go gentle with me. I am looking to add my Flash Header (.swf) into the header but for some reason it will not show up. I think i hvae to put in some code but am stupped as to what and where in the header.php to put it. Any Help would be gratefully received. Many Thanks in advance. Neil Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2009 Share Posted June 16, 2009 Hi All Still quite new to this so go gentle with me. I am looking to add my Flash Header (.swf) into the header but for some reason it will not show up. I think i hvae to put in some code but am stupped as to what and where in the header.php to put it. Any Help would be gratefully received. Many Thanks in advance. Neil Make sure you copy your "filename.swf" to the folder: images and after that is quite simple just add the following code: <iframe src="images/filename.swf" width=XXX height=XXX frameborder=0 marginheight=0 marginwidth=0 scrolling="no"></p></iframe> Change the "XXX: to the real size of Width and height of the filename.swf bye Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2009 Share Posted June 16, 2009 Make sure you copy your "filename.swf" to the folder: images and after that is quite simple just add the following code: <iframe src="images/filename.swf" width=XXX height=XXX frameborder=0 marginheight=0 marginwidth=0 scrolling="no"></p></iframe> Change the "XXX: to the real size of Width and height of the filename.swf bye Where abouts in the code should i put this i have tried in several places but it brings up an error every time. Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2009 Share Posted June 16, 2009 This is the code to use to display flash movies. Make sure to set width and height to your .swf and replace the 2 instances of your_file_name_here with the name of your .swf. This also assume your .swf is in your images folder. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="" height=""> <param name="movie" value="images/your_file_name_here.swf"> <param name="quality" value="high"> <embed src="images/your_file_name_here.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="" height="" ></embed> </object> Link to comment Share on other sites More sharing options...
Guest Posted June 23, 2009 Share Posted June 23, 2009 Where abouts in the code should i put this i have tried in several places but it brings up an error every time. All depends where you want it, as you may notice the oscommerce shopping cart is structured in sections and each one depends also in the language that you have selected to show: CATALOG\INCLUDES\ header.php column_right.php column_left.php footer.php or the main section depending on language: CATALOG\INCLUDES\LANGUAGE\ENGLISH\ index.php in any of the above files you could add a movie flash be carefull to backup your files always and the position of the movie will depend where you want it shown. if you dont know about PHP CODES i suggest dont try. Link to comment Share on other sites More sharing options...
bkellum Posted June 23, 2009 Share Posted June 23, 2009 For best compatibility: See http://blog.deconcept.com/swfobject/ for more details on Flash and the SWFObject embed script. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
h2oHOH Posted June 24, 2009 Share Posted June 24, 2009 SWFObject embed script. Yes, swfObject is the best way... also makes it easy to pass variables to MovieClips... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.