sonictrip.net Posted December 5, 2003 Posted December 5, 2003 Anyone know what needs to be changed to use a Flash file for the logo instead of a .gif? ;)
moonstone Posted December 5, 2003 Posted December 5, 2003 first, BACKUP! That's the most crucial step. next, open up catalog/includes/header.php, about lines 55 - 60, search for: <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 with: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" id="YOUR_ID" width="600" height="80"> <param name="movie" value="images/flash.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF"> <embed name="Title" src="images/flash.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="600" height="80" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> </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> Remember to change the values in Bold to suit your needs. Hope that helps...
Guest Posted December 5, 2003 Posted December 5, 2003 yea....I also use a flash menu instead of the categories box.... B)
jello1 Posted December 5, 2003 Posted December 5, 2003 carrearod, does you flash menu pull from the db? <span style='font-family:Courier'>If you can't fix it Perl it!!!...</span> ******************************
Guest Posted December 5, 2003 Posted December 5, 2003 carrearod,does you flash menu pull from the db? nope :( I wish it did. When I created the flash buttons, I had to harcode my top level categories which was ok for me since my top levels will probably never change. if they do, all I need to do is add a button.
sonictrip.net Posted December 6, 2003 Author Posted December 6, 2003 That's great, thanks a million Moonstone! :D
moonstone Posted December 6, 2003 Posted December 6, 2003 You are most welcome! Glad I could help. :D
brunnoh Posted February 2, 2004 Posted February 2, 2004 How can i Add a flash menu instead of categories ??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.