aspÖÐÒýÓÃjsÓï¾ä?
ÄÄλÐÖµÜÄܰïÎÒ·ÖÎöÏÂÁÐÓï¾ä,ÎÒ¾õµÃÖ÷ÒªÊÇresponse.write("setCursorPos();")ÓÐÎÊÌâ,СµÜÍò·Ö¸Ðл...........
<form name="wer">
<input type="text" name="tt" >
</form>
<%
response.write" <script language='javascript'>"
response.write("setCursorPos();")
response.write" </script>"
%>
<script language="javascript">
setCursorPos();
function setCursorPos() {
var txtRange = document.wer.tt.createTextRange();
txtRange.moveStart( "character",document.wer.tt.value.length);
txtRange.moveEnd( "character", 0 );
txtRange.select();
}
ûÎÊÌ⣬ÊÇЧ¹ûûÓаÉ
Äã°ÑtxtRange.moveStart( "character",document.wer.tt.value.length); Õâ¾äÈ¥µôÊÔÊÔ
µ÷ÕûÒ»ÏÂ˳Ðò:
HTML code:
<form name="wer">
<input type="text" name="tt" value="abc" >
</form>
<script language="javascript">
function setCursorPos() {
var txtRange = document.wer.tt.createTextRange();
txtRange.moveStart( "character", 0);
txtRange.moveEnd( "character", documen
Ïà¹ØÎÊ´ð£º
<%On Error Resume Next
Set conn=Server.CreateObject("ADODB.Connection")
conn.begintrans
conn.Open ("Driver={SQL Server};server=(local);uid=sa;database=student;pwd=")
......
Îļþ£ºfolder.inc
HTML code:
<%
Dim folderini,pos,pageName
fPath = Request.ServerVariables("PATH_TRANSLATED")
pos = instrRev(fPath,"\")
folderini = Left(fPath,pos)+&qu ......
Çë¸÷λ¸ßÊÖ°ï½â¾ö,¼±!!!
<script language="JavaScript" type="text/javascript">
function CheckInput(){
if (document.frm.loginname.length =0){
alert('ÇëÕý ......
ÓÐÄÄλ¸ßÊÖÓùýASP FCKÔÚÏß±à¼Æ÷ѽ£¬ËüÄǸöͼƬÉÏ´«¹¦ÄÜÔõôÅäÖÃѽ
ÄܸøÎÒ·¢¸öÄÜÓÃFCKÔÚÏß±à¼Âð£¿Ò»¶¨ÄÜÉÏ´«Í¼Æ¬¹¦ÄܵÄѽ£¬¼±Ñ½
Ö±½Óµ½¹Ù·½ÍøÕ¾È¥Ï¸ö¾Í¿ÉÒÔÁË£¬¹ØÓÚÉèÖÃô£¬Ö±½ÓGOOGLEÒ»ÏÂÄãµÄ°æ±¾ºÅ¾Í¿ÉÒÔÕÒµ ......
<%
Sql="select top 8 * from NewsData where d_classid in (select classid from NewsClass where ParentID=16)"
Rs.Open Sql, conn, 1,1
Do Until Rs.Eof
......