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.
- 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
You need to login to post a comment.