Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Button image link to URL


lglapion

Recommended Posts

Does anyone know format to use to link a button image to a URL? Thanks!

more description of what i am trying to do: I am trying to use my "shopnow.gif" button on my home page to send customers to my osc shop url. i don't know how to type this out to make it work...help?

 

i tried this and it blanked the bottom part of my screen:

<?php echo'<a href="http://www.website.com">'.tep_image(DIR_WS_IMAGES.'shopnow.gif').'</a>';?>

 

how far off am i :-"

Link to comment
Share on other sites

more description of what i am trying to do: I am trying to use my "shopnow.gif" button on my home page to send customers to my osc shop url. i don't know how to type this out to make it work...help?

 

i tried this and it blanked the bottom part of my screen:

<?php echo'<a href="http://www.website.com">'.tep_image(DIR_WS_IMAGES.'shopnow.gif').'</a>';?>

 

how far off am i :-"

 

Once again, figured it out on my own. In case this helps someone else get on the right track - you would need to know the path & source of your image and the width and height. But you would start with something like this:

 

<a href="URL"><IMG src="file source of image/imagename.gif" WIDTH=135 HEIGHT=24 ALT=""></a>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...