Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting .swf file to work


Guest

Recommended Posts

I am trying to change the template's logo to mylogo.swf but it is not loading on the site.

If I right-click on the icon box and view image in a new page the image will load.

Can you give me some suggestions

 

Thanks

Link to comment
Share on other sites

hi you need to use the correct code to embed the swf file rather than linking to it like an image.

 

eg:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="115" height="115">

<param name="movie" value="file:///WARP%20DRIVE/Users/danhickey/Desktop/flash.swf">

<param name="quality" value="high">

<embed src="file:///WARP%20DRIVE/Users/danhickey/Desktop/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="115" height="115"></embed>

</object>

 

this can be generated by dropping the swf into dreamweaver and copying the code.

 

apologies if you already know this.

 

cheers Dan

Link to comment
Share on other sites

Where should this be added ?

 

includes/header file

 

<!-- top logo header -->

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<TR>

<TD class="topbanner_td1" width="439" valign="top"><IMG SRC="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>speed_az_top_left.swf"></TD>

<TD class="topbanner_td2" valign="top"><table width="100%" class="expender_tb"><tr><td></td></tr></table></TD>

<br><table border="0" cellspacing="0" cellpadding="0" width="100%">

<?php $column_location = 'Search'; ?>

<?php require(DIR_WS_BOXES_AZ . 'search.php'); ?>

<?php $column_location = ''; ?>

</table>

</TD>

</TR>

</TABLE>

Link to comment
Share on other sites

ok if your trying to replace the default oscommerce logo find this in the header.

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

 

replace this bit

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

 

with the code to embed your flash something like this:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="115" height="115">

<param name="movie" value="file:///WARP%20DRIVE/Users/danhickey/Desktop/flash.swf">

<param name="quality" value="high">

<embed src="file:///WARP%20DRIVE/Users/danhickey/Desktop/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="115" height="115"></embed>

</object>

Link to comment
Share on other sites

I'm having a similar problem installing a swf image into the main index file. I've inserted the coding which was supplied with the program (The Flash Ad Creator) and uploaded the swf file and ad assets folder (which contains my images) into the images folder but the swf image will not show on the page. If you right click over where the image should be it says image not loaded and has details for macromedia so there is something there - just the image will not load.

 

If anyone can help on this it would be greatfully appreciated :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...