|
Convert your javscript into a function and put it into the <head>
<script language="JavaScript" type="text/javascript">
function ShowTime() {
var curDate = new Date();
var formattedDate = curDate.getHours() +":"+ curDate.getMinutes() +":"+ curDate.getSeconds();
document.write(formattedDate);
}
</script>
And use
<%
with response
.write "<script type=" & chr(34) & "text/javascript" & chr(34) & ">"
.write "ShowTime()"
.write "</script>"
end with
%>
to write on the call to the function in to the page. Or convert that into a string of course
<%
dim TimeCode
TimeCode = "<script type=" & chr(34) & "text/javascript" & chr(34) & ">ShowTime()</script>"
Application("txt1") = "<B>" & Session("loginname") & ":</B> " & Request.Form("message") &" (" & TimeCode & ")"
%>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|