Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hi! FLASH HEADER PROBLEM


davidandrews

Recommended Posts

Posted

Done a search but can't find a simple answer to this one

 

Trying to add my own FLASH header,

 

I thought I would have to alter :

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ADDMYFLASH.swf', 'MYFLASH') . '</a>'; ?></center>

 

in the includes/header.php file

 

But it hasn't worked

 

Any ideas / pointers?

 

Is it just the includes/header.php file i have to alter or another one?

 

Also, specifically which area of code do i need to adjust?

 

Many Thanks for your help

 

I have searched through the site, for answers but couldn't find a specific reply to the exact code needed to be altered

 

THANKS!!

Posted

I don't know a massive amount about flash, but you need to do more than just link the file to embed a flash movie into the html. I think the format is something like this (note, this will hard code the path):

 

<?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">
<object width="500" height="150">
<param name="movie" value="yourfilename.swf">
<embed src="path_to_file/yourfilename.swf" width="500" height="150"></embed>
</object>
</a>'; ?></center>

 

Obviously I've split this up so you can see it better, but it should all go on one line and then just change the width/height/filenames to match your requirements.

 

HTH.

Archived

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

×
×
  • Create New...