<% Sub Verd(size)
response.write "<font face=""Verdana, Arial,
Helvetica, sans-serif"" size=""" & size &
"""color=""#000000"">"
end sub %>
Helvetica, sans-serif"" size=""" & size &
"""color=""#000000"">"
end sub %>
Let's see here... if I put the opening tag of a deprecated HTML element in a vbScript function, it will keep me from having to type that over and over and it will spew lots of extra source, which will make the server slow because of context switching and make the browser slow because of large amounts of HTML 1 content that will assuredly be missing the closing tags. Perfect. Who needs CSS? Not me, thanks, I'm good.
(submitted by DB)
2 comments:
"which will make the server slow because of context switching"
Good news: "context switching" is an old myth. Your Response.Write statement is _compiled_ before it's run the first time (and the compiled code is cached for use thereafter), so there's no extra overhead in your very handy subroutine.
ASP Scripts are compiled? I thought that they were just interpreted in-line.
Post a Comment