Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best Sellers Background Scroll Box


Guest

Recommended Posts

Posted

Hello All

 

I am using one of the contributions that allow the Best Sellers box to scroll up the page. I am however having problems changing the background color. the code is

 

class infoBox5 extends tableBox {

function infoBox5($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => '<marquee id="marquee1" onMouseOver="marquee1.stop();" onMouseOut="marquee1.start()" bgcolor="#FFFFFF" direction="up" scrollAmount="1" style="height:65">' . $this->infoBoxContents($contents) . '</marquee>');

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

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

}

 

function infoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="infoBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

for ($i=0; $i<sizeof($contents); $i++) {

$info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="boxText"', 'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

I am unable to understand why this does not work.

 

could anyone Please help?

Archived

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

×
×
  • Create New...