|
Posted by Thomas Mlynarczyk on October 11, 2005, 10:13 pm
Please log in for more thread options
Also sprach teranetsecurity@gmail.com:
> But The problem is in the anchor tag im putting in there
> <a name='$name'><a href=$php_self?var=$var&var2=$var2#$name>$name</a>
So, basically, that is more or less the same as
<a name="$name"></a><a href="#$name">Blah</a>
(Your code is missing a closing </a> tag!)
> when the link is clicked that point in the menu displays at the top
Well - what else do you expect from this code? You define a named anchor and
on the same line a link to that very anchor.
> which does not look good for a small menu.
You said the menu had the capability of growing quite large. So a "small"
menu would be more or less an exception, in which case that behaviour could
simply be tolerated. Anyway, as you are generating it with PHP you can
easily check its size and simply drop the named anchor if the menu is not
large enough.
|