By kingto on
hello,
i installed superfish according to the http://drupal.org/node/436336 , and it has worked, but there's a bug as you can see at http://www.hk-pk.com/
well, the codes i'm using are as follows:
<div id="superfish"><?php
$tree = menu_tree_page_data('secondary-links');
$output = '';
$items = array();
// Pull out just the menu items we are going to render so that we
// get an accurate count for the first/last classes.
foreach ($tree as $data) {
if (!$data['link']['hidden']) {
$items[] = $data;
}
}
$num_items = count($items);
foreach ($items as $i => $data) {
$extra_class = NULL;
if ($i == 0) {
$extra_class = 'first';
}
if ($i == $num_items - 1) {
$extra_class = 'last';
}
$link = theme('menu_item_link', $data['link']);
if ($data['below']) {
$output .= theme('menu_item', $link, $data['link']['has_children'], menu_tree_output($data['below']), $data['link']['in_active_trail'], $extra_class);
}
else {
$output .= theme('menu_item', $link, $data['link']['has_children'], '', $data['link']['in_active_trail'], $extra_class);
}
}
print $output;
?></div>
thx.
Comments
dont think i understood but
try to follow this guys: http://drupal.org/node/511380
thx a lot for your reply! in
thx a lot for your reply!
in fact, there's some different from ours.
the issue only happens on the menu that has children.
it directly appears on the below(IN firefox is appears on the left side) no matter whether i move the mouse on its parent menu,
but the right display is only appears after i move the mouse on its parent menu.
i think perhaps i have got to modify the codes that above-mentioned.
I'm not good at php so can anyone please help me with those codes?
ps, the superfish's css is at http://www.hk-pk.com/themes/addari/sf/css/theme.css
thanks.
please :-`(
please :-`(
_
Please don't post duplicate threads. I've deleted the dupe, thanks.
sorry for that but i really
sorry for that
but i really need help
this issue has fixed. thx.
this issue has fixed. thx.