< div class="cssmenu" >
<ul>
<li class="active"><a href="index.jsp"><span></span></a></li>
<li><a href="recommend.jsp"><span></span></a></li>
<li><a href="staff.html"><span></span></a></li>
<li><a href="contact.html"><span></span></a></li>
<div class="clear"></div>
</ul>
< / div >
there is a navigation bar like this. How do you want to activate the class="active" style according to the hyperlink you click?
clicking the navigation bar will jump to the corresponding page. Can I still use js?
Click the home page, the home page will have a red background, and jump to the home page
Click on the popular book, which will have a red background and jump to the page of the popular book