For some reason I can't start a new thread, but this post is related.
This is a bit of a ridiculous question, and I'm quite sure the solution is simple but it's been killing my progress for way too many hours now, so if anyone could help it would be much appreciated.
My js skills leave something to be desired and when combined with the php variables I'm just a mess.
To get around this and still have a custom menu I just used css and typed out my secondary link lists in the index file. Now the menus are functioning the way I want, appearing on the appropriate pages, but I can't get the active links in the sub menus to highlight.
ie: click "profile" and "process" appears in the sub-menu area, but when you click "process" I can't get "process" to stay pink.
I thought I could fix this with a little script like this
$(function(){
var path = location.pathname.substring(1);
if ( path )
$('#sub_select a[href$="' + path + '"]').attr('class', 'selected');
});
I also rather blindly tried
<?php
if strpos$_SERVER'PHP_SELF' 'index.php?/process' echo 'class="active"'
?><a href="<%baseurl%>/index.php?/process/">Process</a>
But neither seem to be working. Any ideas?
oh and this is my site
Thanks!