Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What am i doing wrong with the Info Box code?


saadahmed

Recommended Posts

the website is here http://www.idrmotorsports.com/shop

 

and here is the code for the information box

 

<?php /* infobox template ?*/ ?>
? ? <TABLE WIDTH=115 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="left">
<TR>
?<TD>
?	<IMG SRC="images/box_01.jpg" WIDTH=21 HEIGHT=16 ALT=""></TD>
?<TD>
?	<IMG SRC="images/box_02.jpg" WIDTH=94 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
?<TD COLSPAN=2>
?	<IMG SRC="images/box_03.jpg" WIDTH=115 HEIGHT=21 ALT=""></TD>
</TR>
<TR>
?<TD COLSPAN=2>
?	<IMG SRC="images/box_04.jpg" WIDTH=115 HEIGHT=23 ALT=""></TD>
</TR>
<TR>
?<TD COLSPAN=2>
?	<IMG SRC="images/box_05.jpg" WIDTH=115 HEIGHT=39 ALT=""></TD>
</TR>
<TR>
?<TD COLSPAN=2>
?	<IMG SRC="images/box_06.jpg" WIDTH=115 HEIGHT=43 ALT=""></TD>
</TR>
</TABLE>

Link to comment
Share on other sites

i can make the image to appear more and more by editing the the number in the

 

class infoBoxHeadingCategories extends tableBox { 
function infoBoxHeadingCategories($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { 
$this->table_cellpadding = '0'; 
if ($left_corner == false) { 
$left_corner = tep_image(DIR_WS_IMAGES . ''); 
} else { 
$left_corner = tep_draw_separator(''); 
} 

$info_box_contents = array(); 
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeadingCategories"', 
'text' => $left_corner), 
array('params' => 'width="100%" height="14" class="infoBoxHeadingCategories"', 
'text' => $contents[0]['text']), 
array('params' => 'height="14" class="infoBoxHeadingCategories" nowrap', 
'text' => $right_corner)); 

$this->tableBox($info_box_contents, true); 
}
}

You will also need to change the number in 'height="14" to the height of your image.

There are 3 numbers you will need to change in the above code.

 

but how do i put the links inside the image??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...