The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
||||
|
||||
![]() Quote:
I got to thinking a jQuery solution, I may add classes based on links. It would look something like: Code:
$(".navLink a[href*='" + location.pathname + "']").addClass("active"); HTML Code:
<div class="navLink"> <a href="index.php" class="active">Home</a> //We are on index so jQuery added class="active" <a href="page.php">Page</a> <a href="showthread.php">Threads</a> </div> as for the link we want styled if its not the current page, add its own class to it, and tell jQuery to remove it if it is the current page. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|