Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add ing a Flash Header


Guest

Recommended Posts

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

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

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

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

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

Archived

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

×
×
  • Create New...