I have noticed on this site:
That the HTML of each of the name suggestions is e.g. like this:
<a target="blank" rel="nofollow" href='http://...'>NoamA1</a>
But if you click on any of the name suggestion links, the little blue star changes to orange.
If I inspect the HTML in FireBug, it shows this:
<a target="blank" rel="nofollow" class="active" href='http://...'>NoamA1</a>
I just wondered how the class of the link is changed on the link being clicked.
Any advice much appreciated.
No, in normal circumstances this is handled by server-side code, such as PHP. If you are using a content management system, the system inserts that class when the page URL matches the link URL. You can do it manually on a static site, but it's not very efficient. An alternative is to use CSS, as explained here:
This topic is now closed. New replies are no longer allowed.