/ Published in: ASP

Use this function to create a unique class name based on the page's url. It makes for a great way to drill down with specificity in CSS later by placing this on the ID or as a Class on the body tag.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function CreatePageClassName() url = lcase(request.ServerVariables("URL")) url = right(url,len(url)-1) url = replace(url,"/","_") url = replace(url,".asp","") CreatePageClassName = "url_" & url end function
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=15
Comments
