Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Embed Flash banner in a infobox or column


Guest

Recommended Posts

Posted

Hi,

 

Need some help with embedding a Flash movie in OSCommerce.

 

I have read the verious Flash topics on this forum however none seem to cover how to embed a flash movie inside a infobox or in one of the columns.

 

I have version 2.2 MS1 installed with a few mods:

 

Mattice's Define_Mainpage v1.2 mod

Javascript 'click-on-close' mode

Big Images 1.24

 

I am using Mattice's excellent define main page mod, having modified the main page with a few boxes I wanted to place a flash movie inside an infobox called 'Announcements' - this flash movie is a simple animation that displays a new feature for the site with a link to take the user to the area - all works well when testing through a HTML page.

 

Not being much of a PHP coder I didn't know where to begin, I would also like to place future flash movies inside a column_right.php panel.

 

I tried using the standard HTML code that Flash produces but this did not work resulting in a blank OSCommerce default page, then I tried playing with PHP, I created a define constant to point to the flash movie and tried calling the movie through PHP, no luck.

 

What is the best way of doing this, I am sure it is simple and definitely a request many OSCommerce users will need an answer for.

 

Thanks in advance,

 

Taz

Posted

Hi,

 

Nothing like a bit of determination and coffee! :wink:

 

I worked out what the problem was, here is the solution:

 

 <?php echo '<embed src="http://your_server/images/flash/liveauction.swf" loop=false pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type='application/x-shockwave- flash' width="250" height="150"></embed>';



?>

 

All sorted now, I can use the above code and embed flash movies anywhere in any box and inside the product descriptions.

 

The above code could be refined even more with the use of some variables setup, e.g. a define constant to point to a specific flash folder or some values in the database that store the flash movies href links.

 

Thanks,

 

Taz

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...