davidandrews Posted January 24, 2005 Posted January 24, 2005 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!!
delinear Posted January 24, 2005 Posted January 24, 2005 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.
davidandrews Posted January 24, 2005 Author Posted January 24, 2005 HI THere Massive Thanks for your help I just found the solution here: http://www.oscommerce.com/forums/index.php?showtopic=34440&hl= This worked a treat for me, it confused me a little having to place the flash includes before the PHP , but I am no PHP genuis! Grateful thanks for your heko!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.