Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you change the colour of a menu drop down?


marcus76

Recommended Posts

Hi All,

Could somone please help me with changing the colour of a default menu dropdown? The border / dropdown arrow..Code snippet below.

 

Many thanks

 

Marcus

 

<?php

// Additional Products Sort

echo '<td align="right" class="smallText">' . tep_draw_form('sort', FILENAME_DEFAULT, 'get') . 'Sort by: ';

 

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);

} else {

echo tep_draw_hidden_field('cPath', $cPath);

}

 

$sort_list = array('5d' => 'Best Sellers',

'3a' => 'Price Low to High',

'3d' => 'Price High to Low');

foreach($sort_list as $id=>$text) {

$sort_range[] = array('id' => $id, 'text' => $text);

}

 

echo tep_draw_pull_down_menu('sort', $sort_range, (isset($HTTP_GET_VARS['sort'])? $HTTP_GET_VARS['sort'] : ''), 'onchange="this.form.submit()"');

echo tep_draw_hidden_field('filter_id', (isset($HTTP_GET_VARS['filter_id'])? $HTTP_GET_VARS['filter_id'] : ''));

echo '</form></td>' . "\n";

// End Additional Products Sort

 

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...