Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change image according to language.


dko

Recommended Posts

Posted

Hello.

 

I 've been trying to make my images change according to language but had no luck.

I have a TM template. Please have a look. Is there any way i can change it?

 

<table cellspacing=0 cellpadding=0>
			 <tr><td><a href=<?=tep_href_link('index.php')?>><img src=images/m02.gif width=191 height=39 border=0></a></td></tr>
			 <tr><td><a href=<?=tep_href_link('about.php')?>><img src=images/m03.gif width=191 height=36 border=0></a></td></tr>
			 <tr><td><a href=<?=tep_href_link('service.php')?>><img src=images/m04.gif width=191 height=38 border=0></a></td></tr>
			 <tr><td><a href=<?=tep_href_link('design.php')?>><img src=images/m05.gif width=191 height=37 border=0></a></td></tr>
			 <tr><td><a href=<?=tep_href_link('contact_us.php')?>><img src=images/m06.gif width=191 height=38 border=0></a></td></tr>
			</table>

 

Would be grateful if anyone could help.

Posted

You should display the images with the tep_image() wrapper function, so you can add the language directory in front of the image file name in order to make them language dependant.

Archived

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

×
×
  • Create New...