Kan ikke forstå at textfielden går ud af focus
paster lige kode .. kig i bunden for spørgsmål ..--------
<%
If Request.Form("message") <> "" Then
strMessage = Trim(Request.Form("message"))
if strMessage <>"" then
strMessage = CStr(Replace(strMessage,"'","`"))
strMessage = CStr(Replace(strMessage,"<","<"))
strMessage = CStr(Replace(strMessage,">",">"))
strMessage = CStr(Replace(strMessage,":)","<img src=images/smiley1.gif>"))
strMessage = CStr(Replace(strMessage,";)","<img src=images/smiley2.gif>"))
strMessage = CStr(Replace(strMessage,":(","<img src=images/smiley3.gif>"))
strMessage = CStr(Replace(strMessage,":|","<img src=images/smiley4.gif>"))
strMessage = CStr(Replace(strMessage,":@","<img src=images/smiley5.gif>"))
strMessage = CStr(Replace(strMessage,":?","<img src=images/smiley6.gif>"))
strMessage = CStr(Replace(strMessage,":!","<img src=images/smiley7.gif>"))
strMessage = CStr(Replace(strMessage,":*","<img src=images/smiley9.gif>"))
End If
If Not Request.Form("message")="" THEN
APPLICATION.LOCK
Application("txt30") = Application("txt29")
Application("txt29") = Application("txt28")
Application("txt28") = Application("txt27")
Application("txt27") = Application("txt26")
Application("txt26") = Application("txt25")
Application("txt25") = Application("txt24")
Application("txt24") = Application("txt23")
Application("txt23") = Application("txt22")
Application("txt22") = Application("txt21")
Application("txt21") = Application("txt20")
Application("txt20") = Application("txt19")
Application("txt19") = Application("txt18")
Application("txt18") = Application("txt17")
Application("txt17") = Application("txt16")
Application("txt16") = Application("txt15")
Application("txt15") = Application("txt14")
Application("txt14") = Application("txt13")
Application("txt13") = Application("txt12")
Application("txt12") = Application("txt11")
Application("txt11") = Application("txt10")
Application("txt10") = Application("txt9")
Application("txt9") = Application("txt8")
Application("txt8") = Application("txt7")
Application("txt7") = Application("txt6")
Application("txt6") = Application("txt5")
Application("txt5") = Application("txt4")
Application("txt4") = Application("txt3")
Application("txt3") = Application("txt2")
Application("txt2") = Application("txt1")
Application("txt1") = "<font face=Verdana size=2 color=" & Session("color") & "><b>" & Session("chatname") & "<font face=Verdana size=1> " & time() & "</b>: <font face=Verdana size=2>" & strMessage & "</font>"
APPLICATION.UNLOCK
End If
End If
%>
<html>
<head>
<title></title>
</head>
<body bgcolor="#000080" text="#00FFFF" vlink="#66FF33" link="#FFFF00" alink="#006600">
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindow(url, name) {
popupWin = window.open(url, name, 'width=480,height=300')
}
// done hiding -->
</script>
<form method="POST" action="send.asp" target="Bottom">
<input type="text" name="message" size="57"> <a href="java script:openWindow('help.htm', 'remote');">Help</a>
</form>
</body>
Det er den skide textfield, den går ud a focus hver gang jeg sender en msg. altså jeg skal trykke i den HVER gang jeg skal sende en ny besked .. nogen der ved hvad der er galt ?
btw. Selve chatten + source code kan i finde på www.chatin.dht.dk
