Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.31 KB | None | 0 0
  1. <%
  2. Function getClassName()
  3.     scr = Request.ServerVariables("SCRIPT_NAME")
  4.     if instr(scr,"/")>0 then
  5.         scr = right(scr, len(scr) - instrRev(scr,"/"))
  6.     end if
  7.     noExt = Split(scr,".")
  8.     getClassName=noExt(0)
  9. End Function
  10. %>
  11.  
  12.  
  13. Then, in your HTML:
  14.  
  15. <body class="<%=getClassName()%>">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement