Alright, thanks. I will keep that in mind. For me it was just shorter code and i was wanting to test to see if it it would append the css/js to the head. I switched it an added the slashes.
Also, for my navbar.js is this the best way to detect the path select file (eg index/about/contact us/etc..):
Code:
var pathname = window.location.pathname;//gets path name
var finalPath = pathname.split("/")//splits it to an array
var firstLink = $('#nav_left>li:eq(0)>a').attr('href');//gets the first a tag in nav bar
//checks to make sure the path isnt blank. If blank set it to the first link else get the final
if(finalPath[finalPath.length-1]=='')
pathname=firstLink;
else
pathname=finalPath[finalPath.length-1];
//end if
$('#nav_right, #nav_left').children('li').addClass('not'); //sets all values in the nav bar to .not
$('#nav_main a[href="'+pathname+'"]').parent().addClass('selectedPage').removeClass('not'); //clears not style and sets it to a selected style!
-DW [Deadweight]
Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved
Bookmarks