I want to add a class to a body tag with jQuery.
For example if the URL is http://www.mywebsite.com/about_us.asp, I want add the first five letters, in this case \'a
Well, you're going to want document.location. Do some sort of string manipulation on it (unless jQuery has a way to avoid that work for you) and then
document.location
$(body).addClass(foo);
I know this isn't the complete answer, but I assume you can work the rest out :)