Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change image size


netready

Recommended Posts

Posted

One the top right corner, there are 3 images namely, my acct, cart content and checkout.

 

I want to replace them by my own graphics.

 

I know I can just made the new graphics the same name as the old ones and overwrite the old ones. However, the size of the new graphic is bigger than the old one.

 

May I know where can I re-define the image size pls?

 

Thanks

Posted

In my copy of MS2, there is no size specified in the tep_image call in includes/header.php, so it should show them as whatever size you upload.

 

Hth,

Matt

Posted

Now I just want to replace that three icon buttons by one flash file with 3 buttons built in.

 

May I know where can I change the setting for that pls?

 

Thanks

Posted

Now I know that header.php is the file to edit for that purpose.

 

However, when I replace tep_image(DIR_WS_IMAGES . 'header_account.gif' in line 58 with the following:-

 

tep_image(DIR_WS_IMAGES . '<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="279" height="47">

<param name="movie" value="images/toprite_menu.swf">

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

<embed src="images/toprite_menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="279" height="47"></embed>

</object>',

 

The flash file didn't show up.

 

What did I do wrong pls.

 

Any help or suggestion will be very much appreciated

 

Thanks

Posted

Replace the tep_image() call with

'<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="279" height="47">
<param name="movie" value="images/toprite_menu.swf">
<param name="quality" value="high">
<embed src="images/toprite_menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="279" height="47"></embed>
</object>'

instead. Or better yet, just insert the HTML in HTML context, outside of a <?php ?> block.

 

Hth,

Matt

Archived

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

×
×
  • Create New...