I have a simple menu that should dipslay a customised bullet against each item and change when the item is selected ( from bullet to arrow)
The images dont display.
The list is populated from a db using php and the links are made from a function.
The site link is http://217.46.159.226/e_cart22/
The menu is select e-books cataegory.
Any help appreciated.
The css is
The mark up isCode:#cats { margin-top: 5px; float:left; } #cats td.head { text-align:center; width:180px; background-color: gray; color: #FFFFFF; font-size: 90%; } #cats ul { list-style-type: none; margin-left: 0px; padding-left: 0px; } .custom { list-style-image:url('./images/bullet_cat.gif'); } #cats li { list-style-type: none; background-image: url(./'images/arrow_green.gif'); background-repeat: no-repeat; background-position:0px 2px; padding-left: 30px; padding-top: 2px; padding-bottom: 2px; margin-bottom: 2px; } div#cats li a:link { text-decoration: none; color: #00AEED; font-weight: bold; } div#cats li a:visited { text-decoration: none; color: #00AEED; font-weight: bold; } div#cats li a:hover { text-decoration: none; color: #FF0000; font-weight: bold; } div#cats li a:active { text-decoration: none; }
the function for the link isCode:echo '<table>';/*set overall table*/ echo '<tr><td valign="top">';/*set first row and cell in overall table for cats*/ echo '<div id="cats">'; echo '<table width="180" border="1" valign="top">';/*set table for cats*/ echo '<tr><td class="head" >Select an E-Book Category</td></tr>';/*set title cell*/ echo '<tr><td>';/* set table row and cell for cats*/ echo '<ul>'; foreach ($cat_array as $row) { $url = 'show_cat.php?cat_id='.($row['cat_id']); $title = $row['cat_description']; ?> <li class="custom"> <a href="<?php echo $url; ?>"><?php echo $title; ?></a><br /> </li> <?php } echo '</ul>';
Code:function do_html_URL($url, $title) { // output URL as link and br ?> <a href="<?php echo $url; ?>"><?php echo $title; ?></a><br /> <?php }



Reply With Quote


Bookmarks