Farnastic Posted October 16, 2005 Share Posted October 16, 2005 Hello, I need to assign to the function tep_draw_pull_down_menu a css code to customize the colors of drop menu, like the scrollbar color, etc. I have tried using the regular code to modify the scrollbar, but it does not works. I'm talking about the drop menu on oscommerce, like the one on search, the country list, etc. Can anyone please give idea how to assign a class to the function. Here is just in case. thanks far ($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } Link to comment Share on other sites More sharing options...
Wendy James Posted October 16, 2005 Share Posted October 16, 2005 Not so sure about the code you posted above but i have code for categories drop down and this is what I did to change the background and font color maybe it will give you an idea. 'text' => tep_draw_pull_down_menu('cPath', tep_get_paths(array(array('id' => '', 'text' => 'Categories'))), $cPath, 'onchange="this.form.submit();" style="background-color:#006699 " style="color:#FFFFFF "') Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Farnastic Posted October 16, 2005 Author Share Posted October 16, 2005 Hello wendyjames, Exactly. That is the drop menu I want to modify. It calls that function, and I can change the background, the font style, font color, etc., but not the scrollbar. I have been thinking and I guess that even with a class it can't be changed because I see the css does not recognize for example "scrollbar-track-color: #EBF4E0". I don't know, may be I give up on this. Thank you for your post. At least I can match the backgrounds on every drop menu and that is good. Regards far Link to comment Share on other sites More sharing options...
Wendy James Posted October 16, 2005 Share Posted October 16, 2005 Hmm... I know I got the scroll bars working on a site before. This is what I put in the body tag for the scrollbars scrollbar-3dlight-color:#7B4C15; scrollbar-arrow-color:#7B4C15; scrollbar-base-color:#7B4C15; scrollbar-darkshadow-color:#7B4C15; scrollbar-face-color:#EDD599; scrollbar-highlight-color:#7B4C15; scrollbar-shadow-color:#7B4C15; scrollbar-track-color:#EDD599; It works and even work when I have my windowblinds running which overwrites most ccs stuff on sites. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Farnastic Posted October 16, 2005 Author Share Posted October 16, 2005 Hmm... I know I got the scroll bars working on a site before. This is what I put in the body tag for the scrollbars scrollbar-3dlight-color:#7B4C15; scrollbar-arrow-color:#7B4C15; scrollbar-base-color:#7B4C15; scrollbar-darkshadow-color:#7B4C15; scrollbar-face-color:#EDD599; scrollbar-highlight-color:#7B4C15; scrollbar-shadow-color:#7B4C15; scrollbar-track-color:#EDD599; It works and even work when I have my windowblinds running which overwrites most ccs stuff on sites. wendyjames. Yes, that code is in my ccs, under BODY, and I can control the scrollbar colors on the browser (IE), but not the scrollbar bar from the categories, manufacturers and countries drop menu. Someone told me about changing BODY to select and put the whole code inside the HEAD tags in includes/header.php, but works partially (the scrollbar does not change) It works similar to the previous code you posted. I'm going to continue searching, but I guess the scrollbar does not change at all. I noticed that scrollbar is everywhere in my computer, even in Photoshop, Corel, Word, etc, etc. IT IS THE ONE I SEE NOW IN THIS TEXTAREA!!!!! I guess it's XP. thanks greg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.