ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>亚亚洲欧洲精品,国产精品视频一区二区久久,国产精品人成电影http://www.aygfsteel.com/supercrsky/category/27726.html专注于JavaWebå¼€å?/description>zh-cnSat, 31 May 2008 00:45:43 GMTSat, 31 May 2008 00:45:43 GMT60­‘…好用的JS验证框架(LiveValidation)http://www.aygfsteel.com/supercrsky/articles/204130.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Fri, 30 May 2008 08:48:00 GMThttp://www.aygfsteel.com/supercrsky/articles/204130.htmlhttp://www.aygfsteel.com/supercrsky/comments/204130.htmlhttp://www.aygfsteel.com/supercrsky/articles/204130.html#Feedback2http://www.aygfsteel.com/supercrsky/comments/commentRss/204130.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/204130.html˜q™ä¸ªéªŒè¯è¡¨å•­‘…强ã€?/p>

 

输入 hello : 误‚¾“å…¥hello!
非空 : Thankyou!
格式 (包含 live ): 无效!
正则表达�



 

数字验证(ä»ÖM½•æ•°å­—): 必须是数å­?
数字验证(必须为整�: 必须是数�
具体数字验证: 必须是数�
大于数字验证åQ?必须是数å­?
ž®äºŽæ•°å­—验证 : 必须是数å­?
åœ?个数字之é—?.能用ž®æ•°(2000--2003)åQ?必须是数å­?
åœ?个数字之é—?.不能用小æ•?2000--2003)åQ?必须是数å­?



长度验证(½{‰äºŽ4ä½?åQ?
长度验证(大于½{‰äºŽ4ä½?åQ?
长度验证(ž®äºŽ½{‰äºŽ4ä½?åQ?
长度验证(4å’?个字½W¦é•¿åº?åQ?


¾_„¡¡®åŒšw…(输入cssrain或者our或者cake):
部分匚w…:


跟上é?个例子相反(一个是包括åQŒä¸€ä¸ªæ˜¯æŽ’除åQ?br /> 排斥¾_„¡¡®åŒšw…(输入cssrain或者our或者cake):
排斥部分匚w…:


验证复选框:
密码¼‹®è®¤åQ?
¼‹®è®¤å¯†ç :
Email验证:
Email验证(¾l¼åˆæ ¡éªŒä¸èƒ½ž®äºŽ10大于20ä½?

¾lè¿‡æˆ‘的修改åQŒæ½CÞZ¿¡æ¯å·²¾læ˜¯ä¸­æ–‡çš„。用户可以根据自å·Þqš„需要修改相应的提示信息ã€?/div>
 

 

LiveValidation中文修改版下�/a>



]]>用JavaScript计算字符串占用字节数 http://www.aygfsteel.com/supercrsky/articles/204023.html々上善若水�/dc:creator>々上善若水�/author>Fri, 30 May 2008 02:09:00 GMThttp://www.aygfsteel.com/supercrsky/articles/204023.htmlhttp://www.aygfsteel.com/supercrsky/comments/204023.htmlhttp://www.aygfsteel.com/supercrsky/articles/204023.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/204023.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/204023.html原帖地址

最˜q‘å’ŒJavaScript¾U ç¼ ä¸Šäº†ã€?/p>

遇到˜q™ä¹ˆä¸€ä¸ªé—®é¢˜ï¼Œæ•°æ®åº“çš„å­—ç¬¦é›†äØ“UTF-8的,要在™åµé¢ä¸Šä‹É用JavaScript验证输入的文本用UTF-8存储时占用字节长度。JavaScriptçš„String对象有length属性,但是˜q™ä¸ªè®¡ç®—的是字符敎ͼŒä¸æ˜¯å­—节敎ͼˆé—®é¢˜æ€ÀL˜¯¾˜ÀL¥è¦†åŽ»çš„ï¼Œè®°å¾—å½“å¹´çŽ©Delphi的时候,˜q˜å¾—写程序计½Ž—å­—½W¦ä¸²çš„å­—½W¦æ•°åQŒå› ä¸ºDelphi中Stringçš„length是字节数...åQ‰ã€‚偷懒一点的办法是将验证代码中最大长度设¾|®äؓ数据库中对应字段的长度的1/3åQŒä½†æ˜¯è¿™æ ·å‡†¼‹®æ¥è¯´æœ‰ç‚¹ä¸åˆé€‚ã€?/p>

所以想办法在JavaScript中判断在UTF-8下存储的String的字节数åQŒåœ¨¾|‘上扑ֈ°å¾ˆå¤šå…³äºŽUnicode介绍的文档,最重要的是字符¾~–码数值对应的存储长度åQ?/p>

UCS-2¾~–码(16˜q›åˆ¶) UTF-8 字节‹¹?二进åˆ?
0000 - 007F 0xxxxxxx åQ?字节åQ?br /> 0080 - 07FF 110xxxxx 10xxxxxx åQ?字节åQ?br /> 0800 - FFFF 1110xxxx 10xxxxxx 10xxxxxx åQ?字节åQ?

 

于是代码如下åQ?/p>

 

function mbStringLength(s) {
        
var totalLength = 0;
        
var i;
        
var charCode;
        
for (i = 0; i < s.length; i++{
          charCode 
= s.charCodeAt(i);
          
if (charCode < 0x007f{
            totalLength 
= totalLength + 1;
          }
 else if ((0x0080 <= charCode) && (charCode <= 0x07ff)) {
            totalLength 
+= 2;
          }
 else if ((0x0800 <= charCode) && (charCode <= 0xffff)) {
            totalLength 
+= 3;
          }

        }

        
//alert(totalLength);
        return totalLength;
      }
 

 

 

实际ä¸?0x0080åˆ?x07ff之间的字½W¦å¾ˆž®‘会在实际用戯‚¾“入中用到ã€?/p>

 

参考文档:

½E‹åºå‘˜è¶£å‘Œ™¯»ç‰©ï¼šè°ˆè°ˆUnicode¾~–码 http://www.lihuasoft.net/article/show.php?id=2778



]]>
­‘…强的Javascript仿QQ坯Dˆªèœå•http://www.aygfsteel.com/supercrsky/articles/200960.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Fri, 16 May 2008 09:10:00 GMThttp://www.aygfsteel.com/supercrsky/articles/200960.htmlhttp://www.aygfsteel.com/supercrsky/comments/200960.htmlhttp://www.aygfsteel.com/supercrsky/articles/200960.html#Feedback1http://www.aygfsteel.com/supercrsky/comments/commentRss/200960.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/200960.html阅读全文

]]>
验证文äšg扩展名的jshttp://www.aygfsteel.com/supercrsky/articles/200417.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Wed, 14 May 2008 08:04:00 GMThttp://www.aygfsteel.com/supercrsky/articles/200417.htmlhttp://www.aygfsteel.com/supercrsky/comments/200417.htmlhttp://www.aygfsteel.com/supercrsky/articles/200417.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/200417.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/200417.html/**
        éªŒè¯æ–‡äšg扩展名是否合æ³?br />     *
*/

   
function  checkFiles(str)
   
{
        
var strRegex = "(.jpg|.png|.gif|.ps|.jpeg)$"//用于验证囄¡‰‡æ‰©å±•名的正则表达å¼?/span>
        var re=new RegExp(strRegex);
        
if (re.test(str.toLowerCase())){
            
return true;
        }

        
else{
            alert(
"æ–‡äšg名不合法,æ–‡äšg的扩展名必须为jpg,jpeg,gif或ps格式"); 
            
return false;
        }

   }


]]>
计算两个日期之间的工作日和非工作æ—?转自‹¹ªæ›¦)http://www.aygfsteel.com/supercrsky/articles/197438.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Wed, 30 Apr 2008 01:10:00 GMThttp://www.aygfsteel.com/supercrsky/articles/197438.htmlhttp://www.aygfsteel.com/supercrsky/comments/197438.htmlhttp://www.aygfsteel.com/supercrsky/articles/197438.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/197438.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/197438.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
  
<TITLE> ä½œè€…:风中å?nbsp;</TITLE>
  
<META NAME="Generator" CONTENT="EditPlus">
  
<META NAME="Author" CONTENT="">
  
<META NAME="Keywords" CONTENT="">
  
<META NAME="Description" CONTENT="">

<SCRIPT LANGUAGE="JavaScript">
  
//ž®†string转换为Date
  //str必须满èƒö如下格式: 2008-04-29
  function convertString2Date(str)
  
{
   
//用户split分隔出数¾l?ž®†åŒ…å?个元ç´?òq?æœ?æ—?/span>
   var splitArray = str.split("-");
   
   
// ç”¨å¹´,æœ?日构造日期对è±?/span>
   // splitArray[0]-> year, splitArray[1]-> month, splitArray[2]->day
   // ˜q™æ—¶è¦æ³¨æ„æœˆä»½æ˜¯ä»?开始的
   var date = new Date(splitArray[0], splitArray[1- 1, splitArray[2]);
  
   
return date;
  }


  
// å¾—到date1å’Œdate2之间的间éš?/span>
  // date2要比date1å¤?/span>
  // date要满­‘›_¦‚下格å¼? 2008-04-29
  //参数date1å’Œdate2¾cÕdž‹åº”该是String或Date
  // ¼‹®ä¿ä¸¤ç§¾cÕdž‹æ²¡æœ‰é—®é¢˜
  function getIntervalBetweenTwoDates(date1, date2)
  
{
   
var realDate1 = date1;
   
var realDate2 = date2;
   
   
// å¦‚æžœdate1是Date¾cÕdž‹ž®×ƒ¸ç”¨è{æ?/span>
   if(!(date1 instanceof Date))
   
{
    realDate1 
= convertString2Date(date1);
   }

   
// å¦‚æžœdate2是Date¾cÕdž‹ž®×ƒ¸ç”¨è{æ?/span>
   if(!(date2 instanceof Date))
   
{
    realDate2 
= convertString2Date(date2);
   }

   
   
//得到¾lå¯¹å€?(realDate2.getTime() - realDate1.getTime())˜q”回的是毫秒所以要先除1000
   var interval = Math.abs((realDate2.getTime() - realDate1.getTime()))/(1000 * 60 * 60 * 24);
   
   
return interval;
  }


  
function listAllDatesBetweenTwoDates()
  
{
   
var date1 = document.getElementById("start").value;
   
var date2 = document.getElementById("end").value;
   
var target = document.getElementById("result");
   
var interval = getIntervalBetweenTwoDates(date1,date2);
   
// è½¬æ¢string为Date
   date1 = convertString2Date(date1);   
   
var year = date1.getFullYear();
   
var month = date1.getMonth();
   
var date = date1.getDate();
   
--date;
   
   
for(var i = 0 ; i <= interval ; ++i)
   
{
    
++date;
    
    
var theDate = new Date(year, month, date);
    
var tempYear = theDate.getFullYear();
    
var tempMonth = theDate.getMonth() + 1;
    
var tempDate = theDate.getDate();
    
var day = theDate.getDay();
    
var working = null;
    
if(0 == day || 6 == day) // non-working day
    {
     working 
= "non-working day";
    }

    
else
    
{
     working 
= "working day";
    }

    
var theResult = tempYear + "-" + tempMonth + "-" + tempDate + " is " + working;
    
var div = document.createElement("div");
    
    div.innerHTML 
= theResult;
    target.appendChild(div); 
    
   }

  }


</SCRIPT>
</HEAD>
<BODY>
  
start date:
<input type="text" length="20" id="start"><br>
end date:
<input type="text" length="20" id="end"><br>
<input type="button" onclick="listAllDatesBetweenTwoDates()" value="result">
<div id="result"></div>
</BODY>
</HTML>


]]>
万能的alt属æ€?/title><link>http://www.aygfsteel.com/supercrsky/articles/183300.html</link><dc:creator>々上善若水ã€?/dc:creator><author>々上善若水ã€?/author><pubDate>Sun, 02 Mar 2008 12:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/supercrsky/articles/183300.html</guid><wfw:comment>http://www.aygfsteel.com/supercrsky/comments/183300.html</wfw:comment><comments>http://www.aygfsteel.com/supercrsky/articles/183300.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/supercrsky/comments/commentRss/183300.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/supercrsky/services/trackbacks/183300.html</trackback:ping><description><![CDATA[     摘要:   <!-- /**//* @ JavaScript X-Alt 2.0b  @ ä½œè€…:Andyfoo @ åŠŸèƒ½åQšæ½Cºå·¥å…äh¡ @ æ—¥æœŸåQ?008-3-1 @ ¾|‘址åQšhttp://www.getcn.net    http://www.andyfoo....  <a href='http://www.aygfsteel.com/supercrsky/articles/183300.html'>阅读全文</a><img src ="http://www.aygfsteel.com/supercrsky/aggbug/183300.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/supercrsky/" target="_blank">々上善若水ã€?/a> 2008-03-02 20:45 <a href="http://www.aygfsteel.com/supercrsky/articles/183300.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>鼠标滚轮无çñ”控制囄¡‰‡å¤§å°http://www.aygfsteel.com/supercrsky/articles/181516.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Fri, 22 Feb 2008 14:00:00 GMThttp://www.aygfsteel.com/supercrsky/articles/181516.htmlhttp://www.aygfsteel.com/supercrsky/comments/181516.htmlhttp://www.aygfsteel.com/supercrsky/articles/181516.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/181516.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/181516.html<script language="JavaScript">
<!--

//æ— çñ”¾~©æ”¾å›„¡‰‡å¤§å°
function bbimg(o)
{
  
var zoom=parseInt(o.style.zoom, 10)||100;
  zoom
+=event.wheelDelta/12;
  
if (zoom>0) o.style.zoom=zoom+'%';
  
return false;
}

-->
</script>
<img id="p1" src="mpg.jpg" onmousewheel="return bbimg(this)">


]]>
JS的QQ菜单http://www.aygfsteel.com/supercrsky/articles/181514.html々上善若水�/dc:creator>々上善若水�/author>Fri, 22 Feb 2008 13:56:00 GMThttp://www.aygfsteel.com/supercrsky/articles/181514.htmlhttp://www.aygfsteel.com/supercrsky/comments/181514.htmlhttp://www.aygfsteel.com/supercrsky/articles/181514.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/181514.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/181514.html阅读全文

]]>
让form响应Ctrl+Entieré”?/title><link>http://www.aygfsteel.com/supercrsky/articles/179753.html</link><dc:creator>々上善若水ã€?/dc:creator><author>々上善若水ã€?/author><pubDate>Wed, 13 Feb 2008 02:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/supercrsky/articles/179753.html</guid><wfw:comment>http://www.aygfsteel.com/supercrsky/comments/179753.html</wfw:comment><comments>http://www.aygfsteel.com/supercrsky/articles/179753.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/supercrsky/comments/commentRss/179753.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/supercrsky/services/trackbacks/179753.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><!</span><span style="color: #ff00ff">DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">HTML</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">HEAD</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">TITLE</span><span style="color: #0000ff">></span><span style="color: #000000">   New   Document   </span><span style="color: #0000ff"></</span><span style="color: #800000">TITLE</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img id="Codehighlighter1_157_285_Open_Image" onclick="this.style.display='none'; Codehighlighter1_157_285_Open_Text.style.display='none'; Codehighlighter1_157_285_Closed_Image.style.display='inline'; Codehighlighter1_157_285_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_157_285_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_157_285_Closed_Text.style.display='none'; Codehighlighter1_157_285_Open_Image.style.display='inline'; Codehighlighter1_157_285_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">SCRIPT </span><span style="color: #ff0000">LANGUAGE</span><span style="color: #0000ff">= "JavaScript"</span><span style="color: #0000ff">></span><span id="Codehighlighter1_157_285_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_157_285_Open_Text"><span style="color: #000000; background-color: #f5f5f5"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000; background-color: #f5f5f5"><!--</span><span style="color: #000000; background-color: #f5f5f5"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff; background-color: #f5f5f5">function</span><span style="color: #000000; background-color: #f5f5f5"> CHECKKEY()<br /> <img id="Codehighlighter1_183_277_Open_Image" onclick="this.style.display='none'; Codehighlighter1_183_277_Open_Text.style.display='none'; Codehighlighter1_183_277_Closed_Image.style.display='inline'; Codehighlighter1_183_277_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_183_277_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_183_277_Closed_Text.style.display='none'; Codehighlighter1_183_277_Open_Image.style.display='inline'; Codehighlighter1_183_277_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_183_277_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_183_277_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />   </span><span style="color: #0000ff; background-color: #f5f5f5">if</span><span style="color: #000000; background-color: #f5f5f5">(event.keyCode </span><span style="color: #000000; background-color: #f5f5f5">==</span><span style="color: #000000; background-color: #f5f5f5"> </span><span style="color: #000000; background-color: #f5f5f5">13</span><span style="color: #000000; background-color: #f5f5f5">&&</span><span style="color: #000000; background-color: #f5f5f5">event.ctrlKey)<br /> <img id="Codehighlighter1_230_275_Open_Image" onclick="this.style.display='none'; Codehighlighter1_230_275_Open_Text.style.display='none'; Codehighlighter1_230_275_Closed_Image.style.display='inline'; Codehighlighter1_230_275_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_230_275_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_230_275_Closed_Text.style.display='none'; Codehighlighter1_230_275_Open_Image.style.display='inline'; Codehighlighter1_230_275_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />   </span><span id="Codehighlighter1_230_275_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_230_275_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />      alert( 'i   can   </span><span style="color: #0000ff; background-color: #f5f5f5">catch</span><span style="color: #000000; background-color: #f5f5f5">   it</span><span style="color: #000000; background-color: #f5f5f5">!</span><span style="color: #000000; background-color: #f5f5f5"> ');<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />   }</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" /></span><span style="color: #008000; background-color: #f5f5f5">//</span><span style="color: #008000; background-color: #f5f5f5"> --></span><span style="color: #008000; background-color: #f5f5f5"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></span><span style="color: #0000ff"></</span><span style="color: #800000">SCRIPT</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">HEAD</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">BODY   </span><span style="color: #ff0000">ONKEYDOWN</span><span style="color: #0000ff">= "CHECKKEY()"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">BODY</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">HTML</span><span style="color: #0000ff">></span></div> ™åÞZ¾¿è¯´ä¸‹æŒ‰é’®ä¸­çš„<strong>accesskey</strong>属性.<br /> 定义äº?strong>accesskey</strong>的链接可以ä‹É用快捷键(<strong>ALT+字母</strong>)讉K—®.<br /> 比如: <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">input </span><span style="color: #ff0000">type</span><span style="color: #0000ff">="button"</span><span style="color: #ff0000"> accesskey</span><span style="color: #0000ff">="s"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">/></span></div> ž®±å¯ä»¥ç”¨alt+s讉K—®æ­¤æŒ‰é’®ï¼Ž<br /> <br /> 2.如何使form中的submit按钮不响应回车键åQ?br /> ½W¬ä¸€¿Uæ–¹å¼?form不响åº? <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">form   </span><span style="color: #ff0000">onsubmit</span><span style="color: #0000ff">="return   false"</span><span style="color: #0000ff">></span></div> ½W¬äºŒ¿Uæ–¹å¼?整个html都不响应<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">body </span><span style="color: #ff0000">onkeydown</span><span style="color: #0000ff">="if(event.keyCode==13){window.event.keyCode==0;window.event.returnValue=false}"</span><span style="color: #0000ff">></span></div> <img src ="http://www.aygfsteel.com/supercrsky/aggbug/179753.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/supercrsky/" target="_blank">々上善若水ã€?/a> 2008-02-13 10:47 <a href="http://www.aygfsteel.com/supercrsky/articles/179753.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>判断一个form中的checkbox是否有被选中http://www.aygfsteel.com/supercrsky/articles/179702.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Tue, 12 Feb 2008 09:46:00 GMThttp://www.aygfsteel.com/supercrsky/articles/179702.htmlhttp://www.aygfsteel.com/supercrsky/comments/179702.htmlhttp://www.aygfsteel.com/supercrsky/articles/179702.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/179702.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/179702.html<html>

<head>

<title></title>
<script language="javascript" type="text/javascript">
    
function check()
    
{
        
var idss = document.getElementsByName("id");
        
var flag = false;
        
for(var i = 0; i < idss.length; i++)
        
{
            
if(idss[i].checked)
            
{
                flag 
= true;
            }

        }

        alert(flag);
        
return flag;
    }

</script>
</head>

<body>
<form name="aa">
    
<input type="checkbox" name="id" />
    
<input type="checkbox" name="id" />
    
<input type="checkbox" name="id" />
    
<input type="checkbox" name="id" />
    
<input type="button" onclick="check();" value="test"/>
</form>
</body>

</html>

]]>
清除或选中所有的checkbox http://www.aygfsteel.com/supercrsky/articles/179388.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Wed, 06 Feb 2008 03:06:00 GMThttp://www.aygfsteel.com/supercrsky/articles/179388.htmlhttp://www.aygfsteel.com/supercrsky/comments/179388.htmlhttp://www.aygfsteel.com/supercrsky/articles/179388.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/179388.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/179388.html对于有时候要选择或取消页面中的checkboxåQŒå½“然也服务器端也可以做。但总觉得效率不高。不如用JSçš„ã€?br />

不涉及安全能用JSž®Þq”¨JS。。ã€?br />

<script language="javascript">
         
function SelectAll(tempControl)
        
{
            
var theBox=
tempControl;
            xState
=
theBox.checked;

            elem
=
theBox.form.elements;
            
for(i=0;i<elem.length;i++
)
            
if(elem[i].type=="checkbox" && elem[i].id!=
theBox.id)
             
{
                  
if(elem[i].checked!=
xState)
                  elem[i].click();
             }

      }
 
        
</script>

™åµé¢ä¸­åŠ ä¸Šï¼š

<INPUT onclick="javascript:SelectAll(this);" type="checkbox">选中所有的短消æ?/span>
其实其他的选择按钮也差不多的用法�/span>

]]>
JavaScript仿Office颜色选择å™?/title><link>http://www.aygfsteel.com/supercrsky/articles/179124.html</link><dc:creator>々上善若水ã€?/dc:creator><author>々上善若水ã€?/author><pubDate>Sun, 03 Feb 2008 02:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/supercrsky/articles/179124.html</guid><wfw:comment>http://www.aygfsteel.com/supercrsky/comments/179124.html</wfw:comment><comments>http://www.aygfsteel.com/supercrsky/articles/179124.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/supercrsky/comments/commentRss/179124.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/supercrsky/services/trackbacks/179124.html</trackback:ping><description><![CDATA[     摘要:   <HTML> <HEAD> <TITLE> Office é£Žæ ¼é¢œè‰²é€‰æ‹©å™?lt;/TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> &...  <a href='http://www.aygfsteel.com/supercrsky/articles/179124.html'>阅读全文</a><img src ="http://www.aygfsteel.com/supercrsky/aggbug/179124.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/supercrsky/" target="_blank">々上善若水ã€?/a> 2008-02-03 10:56 <a href="http://www.aygfsteel.com/supercrsky/articles/179124.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Javascript动态创建控ä»?/title><link>http://www.aygfsteel.com/supercrsky/articles/178692.html</link><dc:creator>々上善若水ã€?/dc:creator><author>々上善若水ã€?/author><pubDate>Thu, 31 Jan 2008 08:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/supercrsky/articles/178692.html</guid><wfw:comment>http://www.aygfsteel.com/supercrsky/comments/178692.html</wfw:comment><comments>http://www.aygfsteel.com/supercrsky/articles/178692.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/supercrsky/comments/commentRss/178692.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/supercrsky/services/trackbacks/178692.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff"><</span><span style="color: #800000">html</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">title</span><span style="color: #0000ff">></</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img id="Codehighlighter1_85_688_Open_Image" onclick="this.style.display='none'; Codehighlighter1_85_688_Open_Text.style.display='none'; Codehighlighter1_85_688_Closed_Image.style.display='inline'; Codehighlighter1_85_688_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_85_688_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_85_688_Closed_Text.style.display='none'; Codehighlighter1_85_688_Open_Image.style.display='inline'; Codehighlighter1_85_688_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">script </span><span style="color: #ff0000">language</span><span style="color: #0000ff">="javascript"</span><span style="color: #ff0000"> type</span><span style="color: #0000ff">="text/javascript"</span><span style="color: #0000ff">></span><span id="Codehighlighter1_85_688_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_85_688_Open_Text"><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #0000ff; background-color: #f5f5f5">function</span><span style="color: #000000; background-color: #f5f5f5"> createElement(tagName, type)<br /> <img id="Codehighlighter1_124_463_Open_Image" onclick="this.style.display='none'; Codehighlighter1_124_463_Open_Text.style.display='none'; Codehighlighter1_124_463_Closed_Image.style.display='inline'; Codehighlighter1_124_463_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_124_463_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_124_463_Closed_Text.style.display='none'; Codehighlighter1_124_463_Open_Image.style.display='inline'; Codehighlighter1_124_463_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span id="Codehighlighter1_124_463_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_124_463_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> element </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> </span><span style="color: #0000ff; background-color: #f5f5f5">null</span><span style="color: #000000; background-color: #f5f5f5">;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #0000ff; background-color: #f5f5f5">try</span><span style="color: #000000; background-color: #f5f5f5"><br /> <img id="Codehighlighter1_159_299_Open_Image" onclick="this.style.display='none'; Codehighlighter1_159_299_Open_Text.style.display='none'; Codehighlighter1_159_299_Closed_Image.style.display='inline'; Codehighlighter1_159_299_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_159_299_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_159_299_Closed_Text.style.display='none'; Codehighlighter1_159_299_Open_Image.style.display='inline'; Codehighlighter1_159_299_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />   </span><span id="Codehighlighter1_159_299_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_159_299_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      element </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.createElement('</span><span style="color: #000000; background-color: #f5f5f5"><</span><span style="color: #000000; background-color: #f5f5f5">' </span><span style="color: #000000; background-color: #f5f5f5">+</span><span style="color: #000000; background-color: #f5f5f5"> tagName </span><span style="color: #000000; background-color: #f5f5f5">+</span><span style="color: #000000; background-color: #f5f5f5"> ' name</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">'+name+'</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"> </span><span style="color: #000000; background-color: #f5f5f5">/></span><span style="color: #000000; background-color: #f5f5f5">');<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      element.type </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> type;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      element.value </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> value;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />   }</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #0000ff; background-color: #f5f5f5">catch</span><span style="color: #000000; background-color: #f5f5f5"> (e)<br /> <img id="Codehighlighter1_317_322_Open_Image" onclick="this.style.display='none'; Codehighlighter1_317_322_Open_Text.style.display='none'; Codehighlighter1_317_322_Closed_Image.style.display='inline'; Codehighlighter1_317_322_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_317_322_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_317_322_Closed_Text.style.display='none'; Codehighlighter1_317_322_Open_Image.style.display='inline'; Codehighlighter1_317_322_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />   </span><span id="Codehighlighter1_317_322_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_317_322_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />   }</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #0000ff; background-color: #f5f5f5">if</span><span style="color: #000000; background-color: #f5f5f5"> ( </span><span style="color: #000000; background-color: #f5f5f5">!</span><span style="color: #000000; background-color: #f5f5f5"> element)<br /> <img id="Codehighlighter1_346_442_Open_Image" onclick="this.style.display='none'; Codehighlighter1_346_442_Open_Text.style.display='none'; Codehighlighter1_346_442_Closed_Image.style.display='inline'; Codehighlighter1_346_442_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_346_442_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_346_442_Closed_Text.style.display='none'; Codehighlighter1_346_442_Open_Image.style.display='inline'; Codehighlighter1_346_442_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />   </span><span id="Codehighlighter1_346_442_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_346_442_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      element </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.createElement(tagName);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      element.setAttribute(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">type</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">, type);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />   }</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #0000ff; background-color: #f5f5f5">return</span><span style="color: #000000; background-color: #f5f5f5"> element;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />}</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #0000ff; background-color: #f5f5f5">function</span><span style="color: #000000; background-color: #f5f5f5"> add()<br /> <img id="Codehighlighter1_482_687_Open_Image" onclick="this.style.display='none'; Codehighlighter1_482_687_Open_Text.style.display='none'; Codehighlighter1_482_687_Closed_Image.style.display='inline'; Codehighlighter1_482_687_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_482_687_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_482_687_Closed_Text.style.display='none'; Codehighlighter1_482_687_Open_Image.style.display='inline'; Codehighlighter1_482_687_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span id="Codehighlighter1_482_687_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_482_687_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> input1 </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> createElement(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">input</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">,</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">file</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> br </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.createElement(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"><br /></span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> files </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.getElementById(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">files</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    files.appendChild(br);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    files.appendChild(input1);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="color: #0000ff"></</span><span style="color: #800000">script</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">body</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">input </span><span style="color: #ff0000">type</span><span style="color: #0000ff">="button"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="add"</span><span style="color: #ff0000"> onclick</span><span style="color: #0000ff">="add();"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">div </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="files"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">input </span><span style="color: #ff0000">type</span><span style="color: #0000ff">="file"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">div</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">body</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">html</span><span style="color: #0000ff">></span></div> <br /> å»¶äŽ×一下,动态创建inputä»ÀL„å…ƒç´ ä»£ç ç‰‡æ®µå¦‚下卛_¯:<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">function</span><span style="color: #000000"> createElement(tagName,name,type,value)<br /> <img id="Codehighlighter1_48_488_Open_Image" onclick="this.style.display='none'; Codehighlighter1_48_488_Open_Text.style.display='none'; Codehighlighter1_48_488_Closed_Image.style.display='inline'; Codehighlighter1_48_488_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_48_488_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_48_488_Closed_Text.style.display='none'; Codehighlighter1_48_488_Open_Image.style.display='inline'; Codehighlighter1_48_488_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_48_488_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_48_488_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> element </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">try</span><span style="color: #000000"> <br /> <img id="Codehighlighter1_87_230_Open_Image" onclick="this.style.display='none'; Codehighlighter1_87_230_Open_Text.style.display='none'; Codehighlighter1_87_230_Closed_Image.style.display='inline'; Codehighlighter1_87_230_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_87_230_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_87_230_Closed_Text.style.display='none'; Codehighlighter1_87_230_Open_Image.style.display='inline'; Codehighlighter1_87_230_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_87_230_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_87_230_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element </span><span style="color: #000000">=</span><span style="color: #000000"> document.createElement('</span><span style="color: #000000"><</span><span style="color: #000000">'</span><span style="color: #000000">+</span><span style="color: #000000">tagName</span><span style="color: #000000">+</span><span style="color: #000000">' name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">'+name+'</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000">');<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element.type </span><span style="color: #000000">=</span><span style="color: #000000"> type;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element.value </span><span style="color: #000000">=</span><span style="color: #000000"> value;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (e)<br /> <img id="Codehighlighter1_250_256_Open_Image" onclick="this.style.display='none'; Codehighlighter1_250_256_Open_Text.style.display='none'; Codehighlighter1_250_256_Closed_Image.style.display='inline'; Codehighlighter1_250_256_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_250_256_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_250_256_Closed_Text.style.display='none'; Codehighlighter1_250_256_Open_Image.style.display='inline'; Codehighlighter1_250_256_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_250_256_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_250_256_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #000000">!</span><span style="color: #000000">element)<br /> <img id="Codehighlighter1_280_467_Open_Image" onclick="this.style.display='none'; Codehighlighter1_280_467_Open_Text.style.display='none'; Codehighlighter1_280_467_Closed_Image.style.display='inline'; Codehighlighter1_280_467_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_280_467_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_280_467_Closed_Text.style.display='none'; Codehighlighter1_280_467_Open_Image.style.display='inline'; Codehighlighter1_280_467_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_280_467_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_280_467_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element </span><span style="color: #000000">=</span><span style="color: #000000"> document.createElement(tagName);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element.setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">type</span><span style="color: #000000">"</span><span style="color: #000000">,type);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element.setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">,name);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        element.setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">value</span><span style="color: #000000">"</span><span style="color: #000000">,value);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />   }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />   </span><span style="color: #0000ff">return</span><span style="color: #000000"> element;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"> </span></div> <img src ="http://www.aygfsteel.com/supercrsky/aggbug/178692.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/supercrsky/" target="_blank">々上善若水ã€?/a> 2008-01-31 16:07 <a href="http://www.aygfsteel.com/supercrsky/articles/178692.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>标准的动态显½Cºå½“前时间的JavaScript函数http://www.aygfsteel.com/supercrsky/articles/177542.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Thu, 24 Jan 2008 08:56:00 GMThttp://www.aygfsteel.com/supercrsky/articles/177542.htmlhttp://www.aygfsteel.com/supercrsky/comments/177542.htmlhttp://www.aygfsteel.com/supercrsky/articles/177542.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/177542.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/177542.html<script language="javascript" type="text/javascript">
    
function  show_time()
      
{   
          
var today,hour,second,minute,year,month,date,time;
          
          today
=new Date();
      
        year 
= today.getYear();
        month 
= today.getMonth()+1;
        date 
= today.getDate();
        hour 
= today.getHours();
        minute 
=today.getMinutes();
        second 
= today.getSeconds();
        
if(second < 10)
        
{
            time 
= year + "-" + month + "-" + date +" " + hour + ":" + minute + ":0" + second;
        }

        
else
        
{
            time 
= year + "-" + month + "-" + date +" " + hour + ":" + minute + ":" + second;
        }

        document.getElementById(
"time").value = time;
      }
 
     setInterval(show_time,
1000);
</script>
<input type="text" id="time" />

]]>
JavaScript全方位操作Cookiehttp://www.aygfsteel.com/supercrsky/articles/177344.html々上善若水�/dc:creator>々上善若水�/author>Wed, 23 Jan 2008 10:19:00 GMThttp://www.aygfsteel.com/supercrsky/articles/177344.htmlhttp://www.aygfsteel.com/supercrsky/comments/177344.htmlhttp://www.aygfsteel.com/supercrsky/articles/177344.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/177344.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/177344.html阅读全文

]]>
用javascript实现的tip效果http://www.aygfsteel.com/supercrsky/articles/168100.html々上善若水�/dc:creator>々上善若水�/author>Sun, 16 Dec 2007 11:55:00 GMThttp://www.aygfsteel.com/supercrsky/articles/168100.htmlhttp://www.aygfsteel.com/supercrsky/comments/168100.htmlhttp://www.aygfsteel.com/supercrsky/articles/168100.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/168100.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/168100.htmldocument.body.onmousemove=quickalt;
document.body.onmouseover
=getalt;
document.body.onmouseout
=restorealt;
var tempalt='';

function getalt(){
    
if(event.srcElement.title && (event.srcElement.title!='' || (event.srcElement.title=='' && tempalt!=''))){
        altlayer.style.left
=event.x;
        altlayer.style.top
=event.y+20;
        altlayer.style.display
='';
        tempalt
=event.srcElement.title;
        tempbg
=event.srcElement.altbg;
        tempcolor
=event.srcElement.altcolor;
        tempborder
=event.srcElement.altborder;
        event.srcElement.title
='';
        altlayer.innerHTML
=tempalt;
        
if (typeof(tempbg)!="undefined"){altlayer.style.background=tempbg}else{altlayer.style.background="infobackground"}
        
if (typeof(tempcolor)!="undefined"){altlayer.style.color=tempcolor}else{altlayer.style.color=tempcolor="infotext"}
        
if (typeof(tempborder)!="undefined"){altlayer.style.border='1px solid '+tempborder;}else{altlayer.style.border='1px solid #000000';}
    }

}

function quickalt(){
    
if(altlayer.style.display==''){
        altlayer.style.left
=event.x;
        altlayer.style.top
=event.y+10;
    }

}

function restorealt(){
    event.srcElement.title
=tempalt;
    tempalt
='';
    altlayer.style.display
='none';
}

˜q™ä¸ªå¾—加åœ?lt;/body>¾l“束标签的前é?br />
<body>
<span title="不错å•?>默认效果</span>

<div style="display:none;border:1px solid #000000;background-color:#FFFFCC;font-size:12px;position:absolute;padding:2;" id=altlayer></div>
<!--注意˜q™ä¸ªå¼•入必须在下é?->
<script type="text/javascript" src="../js/tip.js"></script>
</body>
˜q™é‡Œé¢çš„æ•ˆæžœå±‚就是这个div.
在想要应ç”?tip的文字上面加ä¸?lt;span></span>标签卛_¯

]]>
验证表单的标准JavaScripthttp://www.aygfsteel.com/supercrsky/articles/165693.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Thu, 06 Dec 2007 00:11:00 GMThttp://www.aygfsteel.com/supercrsky/articles/165693.htmlhttp://www.aygfsteel.com/supercrsky/comments/165693.htmlhttp://www.aygfsteel.com/supercrsky/articles/165693.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/165693.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/165693.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    
<head>
        
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/>
        
<title>Untitled Document</title>
        
<script type="text/javascript">
            
function validate(m,n)
            
{
                
var flag = true;
                
if(m.value == "" && n == 0)
                
{
                    document.getElementById(
"username_info").innerHTML = "ç”¨æˆ·åä¸ä¸ø™ƒ½½I?/span>";
                    flag 
= false;
                }

                
else
                
{
                    document.getElementById(
"username_info").innerHTML = "";
                }

                
if(m.value.length < 6 && n == 0)
                
{
                    document.getElementById(
"username_info").innerHTML = "用户名长度不能小äº?";
                    flag 
= false;
                }

                
else
                
{
                    document.getElementById(
"username_info").innerHTML = "";
                }

                
if(m.value == "" && n == 1)
                
{
                    document.getElementById(
"password_info").innerHTML = "密码不能为空";
                    flag 
= false;
                }

                
else
                
{
                    document.getElementById(
"password_info").innerHTML = "";
                }

                
if(m.value.length < 6 && n == 1)
                
{
                    document.getElementById(
"password_info").innerHTML = "密码长度不能ž®äºŽ6";
                    flag 
= false;
                }

                
else
                
{
                    document.getElementById(
"password_info").innerHTML = "";
                }

                
return flag;
                
            }

        
</script>
    
</head>
    
<body>
        
<div align="center">
            
<form>
                
<input type="text" id="username" onblur="validate(this,0);"/><div id="username_info"></div>
                
<br/>
                
<input type="password" id="password" onblur="validate(this,1);"/><div id="password_info"></div>
                
<br/>
                
<input type="submit" value="验证" /><input type="reset" value="重置"/>
                
<br/>
            
</form>
        
</div>
    
</body>
</html>


]]>
javascript去除字符串空格的函数http://www.aygfsteel.com/supercrsky/articles/164740.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Sun, 02 Dec 2007 17:59:00 GMThttp://www.aygfsteel.com/supercrsky/articles/164740.htmlhttp://www.aygfsteel.com/supercrsky/comments/164740.htmlhttp://www.aygfsteel.com/supercrsky/articles/164740.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/164740.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/164740.htmlfunction jtrim(s)  
{  
  
var i,b=0,e=s.length;  
  
for(i=0;i<s.length;i++//åŽÕd·¦½Iºæ ¼ 
     if(s.charAt(i)!=' '){b=i;break;}  
   
if(i==s.length)  
    
return "";  

  
for(i=s.length-1;i>b;i--) åŽÕd³½Iºæ ¼ 
    
if(s.charAt(i)!=' '){e=i;break;}  
 
return s.substring(b,e+1);  
}
 
下面的更好点:
//åŽÕd·¦½Iºæ ¼; 
function ltrim(s)
return s.replace( /^\s*/""); 
}
 
//åŽÕd³½Iºæ ¼; 
function rtrim(s)
return s.replace( /\s*$/""); 
}
 
//åŽÕd·¦å³ç©ºæ ? 
function trim(s)
return rtrim(ltrim(s)); 
}
 


]]>
响应回èžRå’Œåˆ¤æ–­æ˜¯å¦äØ“æ•°å­—çš„å‡½æ•?可用于分™å?http://www.aygfsteel.com/supercrsky/articles/164692.html々上善若水ã€?/dc:creator>々上善若水ã€?/author>Sun, 02 Dec 2007 12:29:00 GMThttp://www.aygfsteel.com/supercrsky/articles/164692.htmlhttp://www.aygfsteel.com/supercrsky/comments/164692.htmlhttp://www.aygfsteel.com/supercrsky/articles/164692.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/164692.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/164692.html<script language="javascript" type="text/javascript">
//分页处理函数
function check()
{
   
// å“åº”回èžR
   if(event.keyCode == 13)
   
{
      
var currentPage = document.getElementById("currentPage");
      
var totalPage = document.getElementById("totalPage");
      
var flag = true;
      
if(isNaN(currentPage.value))
      
{
         alert('误‚¾“入数å­?);
         currentPage.value 
= "";
         currentPage.focus();  
         
return false;
        
      }

      
else
      
{
           
//处理输入大于总页�/span>
           if(currentPage.value > totalPage.value)
               currentPage.value 
= totalPage.value;
           
//处理ž®æ•°æˆ–è´Ÿæ•?/span>
           if(currentPage.value <= 0)
               currentPage.value 
= 1;
           
//è·Œ™{
         window.location = "user.action?currentPage=" + currentPage.value;
         currentPage.focus(); 
         
return true;
      }

   }

}

</script>
<input type="text" name="currentPage" size="2" onkeydown="return check();"/> 
            
<!-- ä¿å­˜æ€»é¡µæ•?用于javascript处理分页 -->
            
<input type="hidden" id="totalPage" value="<s:property value="#page.totalPage"/>" />
其中的totalPage是通过分页¾cȝ®—出来çš?

]]>
Ö÷Õ¾Ö©Öë³ØÄ£°å£º °²ÑôÏØ| ººÔ´ÏØ| ÓÀ´ºÏØ| ´Ó»¯ÊÐ| ÅìºþÏØ| ³É°²ÏØ| ÍòÈÙÏØ| Т¸ÐÊÐ| Î÷³ëÏØ| å¡ÏªÏØ| ³çÃ÷ÏØ| ÐËÄþÊÐ| Î÷²ýÊÐ| ÍûÚÓÏØ| ³çÑôÏØ| µ¤°ÍÏØ| À×ÖÝÊÐ| ÔÀÑôÊÐ| À³Î÷ÊÐ| ½ºÖÝÊÐ| ¶«ÄþÏØ| ¶¼À¼ÏØ| ½­´ïÏØ| ÐËÄþÊÐ| ÇàÆÖÇø| °¢°ÓÏØ| ÁøºÓÏØ| Û·ÉÆÏØ| ½¨Ê¼ÏØ| ½­³Ç| ɽ¶«Ê¡| Èý¶¼| ³£µÂÊÐ| ¼ÎÒåÊÐ| ³¤ÀÖÊÐ| ÂíÁúÏØ| ´ï¶û| ̨¶«ÊÐ| ÓÊÏä| ¶«ÑôÊÐ| ÉÛ¶«ÏØ|