Also if you want to use href= in the links to get the link effects then you can use href="javascript:{}" instead of href="#". The latter is what causes it to jump to the top of the page when you click it. This way eliminates that problem. Technically you can add a js function to the href as well, such as href="javascript:{view();}". Though it is even better to just forget the whole href bit and just use css and use the onclick on the text container.
|