Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Add A Clickable Image To InfoBox


Guest

Recommended Posts

Hi, I have searched but I can't find the answer. All I want to do is create a new infobox with a clickable image inside.

 

This is what I have but is giving errors

 

<?php

/*

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'Zalman CNPS');

 

new infoBoxHeading($info_box_contents, false, false);

 

<a href="/product_info.php?cPath=21&products_id=28"><img src="/images.php" border=0 ></a>

 

new infoBox($info_box_contents);

?>

</td>

</tr>

 

 

I think this should be php not html but don't know how to do it.

 

Please Help

Link to comment
Share on other sites

It's ok, I sorted it myself.

OK, I have got this much which is working fine:

 

<?php

/*

$Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'Zalman CNPS');

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="http://www.coolnquiet.co.uk/product_info.php?cPath=21&products_id=28"><img src="images/9700.png" border="0" align="middle" alt="Zalman CNPS Super Aero Flower Cooler"></a><br>');

 

new infoBox($info_box_contents);?>

</td>

</tr>

 

I am having trouble centering the image within the box. I know this is probably kids stuff but I haven't matured that much yet.

 

Anyone know how.

 

Thanks folks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...