Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎÊ´ð£º

aspÊÂÎñÎÊÌâ

<%On Error Resume Next
Set conn=Server.CreateObject("ADODB.Connection")
conn.begintrans
conn.Open ("Driver={SQL Server};server=(local);uid=sa;database=student;pwd=") ......

Çó¸ÄÒ»¸öASPС³ÌÐò¼ÓÉÏ´«¹¦ÄܺÍÏÂÔØ¹¦ÄÜ¡£¡£

Îļþ£ºfolder.inc
HTML code:

<%
Dim folderini,pos,pageName
fPath = Request.ServerVariables("PATH_TRANSLATED")
pos = instrRev(fPath,"\")
folderini = Left(fPath,pos)+&qu ......

asp±íµ¥Ìá½»ÎÊÌâ

Çë¸÷λ¸ßÊÖ°ï½â¾ö,¼±!!!
<script language="JavaScript" type="text/javascript">
function CheckInput(){
if (document.frm.loginname.length =0){
alert('ÇëÕý ......

ASP FCKÔÚÏ߱༭Æ÷

ÓÐÄÄλ¸ßÊÖÓùýASP FCKÔÚÏ߱༭Æ÷ѽ£¬ËüÄǸöͼƬÉÏ´«¹¦ÄÜÔõôÅäÖÃѽ
ÄܸøÎÒ·¢¸öÄÜÓÃFCKÔÚÏ߱༭Âð£¿Ò»¶¨ÄÜÉÏ´«Í¼Æ¬¹¦ÄܵÄѽ£¬¼±Ñ½
Ö±½Óµ½¹Ù·½ÍøÕ¾È¥Ï¸ö¾Í¿ÉÒÔÁË£¬¹ØÓÚÉèÖÃô£¬Ö±½ÓGOOGLEÒ»ÏÂÄãµÄ°æ±¾ºÅ¾Í¿ÉÒÔÕÒµ ......

ASP½µÐòÎÊÌâ

    <%
  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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ