è valida per colorare i link all'interno del box categories.php
questa la spiegazione per l'isntallazione:
Codice: Seleziona tutto
My first Contribution.
I added this because the DHTML menus others put up were too complicated in my opinion.
I haven't tested it for nested categories but it should work with no probelms.
Feel free to change and fix.
Here's how to install, you can change the colours, padding, and stuff by changing the values below.
**************************************************
Add the following to your catalog/stylesheet.css
div#list-menu {
width: 100%;
/* this width value is also effected by
the padding we will later set on the links. */
}
div#list-menu ul {
margin: 0;
padding: 0;
list-style-type: none;
}
div#list-menu li {
margin: 2px 0 0;
}
div#list-menu a {
display: block;
width:100%;
padding: 2px 0px 2px 0px;
text-decoration: none; /*lets remove the link underlines*/
border: 1px solid #f8f8f9;
}
div#list-menu a:link, #list-menu a:active, #list-menu a:visited {
color: #0000FF;
}
div#list-menu a:hover {
background: #FFFF00;
color: #D0042F;
font-weight: bold;
border: 1px solid #D0042F;
}
**************************************************
Any links in your info boxes just have to be placed between the following code:
<div id="list-menu">
.
.
STUFF GOES HERE
.
.
</div>
**************************************************
Example 1 :
In "catolog/includes/boxes/categories.php"
Change : $info_box_contents[] = array('text' => $categories_string);
To: $info_box_contents[] = array('text' => '<div id="list-menu">'.$categories_string.'</div>');
**************************************************
Example 2 (information infobox):
<?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => "Kick Trading");
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => '<div id="list-menu"><a href="' . tep_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_INFORMATION_PAYMENTS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_DOWNLOADS) . '">' . Downloads . '</a></div>');
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->
**************************************************
That's it!
Enjoy,
Dailce
Rimango qui per chiarimenti come sempre
ciao a tutti