锘??xml version="1.0" encoding="utf-8" standalone="yes"?>高清av免费一区中文字幕,国产在线观看一区二区,精品视频在线免费http://www.aygfsteel.com/supercrsky/category/27726.html涓撴敞浜嶫avaWeb寮鍙?/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榪欎釜楠岃瘉琛ㄥ崟瓚呭己銆?/p>

 

杈撳叆 hello : 璇瘋緭鍏ello!
闈炵┖ : Thankyou!
鏍煎紡 (鍖呭惈 live ): 鏃犳晥!
姝e垯琛ㄨ揪寮?



 

鏁板瓧楠岃瘉(浠諱綍鏁板瓧): 蹇呴』鏄暟瀛?
鏁板瓧楠岃瘉(蹇呴』涓烘暣鍨?: 蹇呴』鏄暟瀛?
鍏蜂綋鏁板瓧楠岃瘉: 蹇呴』鏄暟瀛?
澶т簬鏁板瓧楠岃瘉錛?蹇呴』鏄暟瀛?
灝忎簬鏁板瓧楠岃瘉 : 蹇呴』鏄暟瀛?
鍦?涓暟瀛椾箣闂?.鑳界敤灝忔暟(2000--2003)錛?蹇呴』鏄暟瀛?
鍦?涓暟瀛椾箣闂?.涓嶈兘鐢ㄥ皬鏁?2000--2003)錛?蹇呴』鏄暟瀛?



闀垮害楠岃瘉(絳変簬4浣?錛?
闀垮害楠岃瘉(澶т簬絳変簬4浣?錛?
闀垮害楠岃瘉(灝忎簬絳変簬4浣?錛?
闀垮害楠岃瘉(4鍜?涓瓧絎﹂暱搴?錛?


綺劇‘鍖歸厤(杈撳叆cssrain鎴栬卭ur鎴栬卌ake):
閮ㄥ垎鍖歸厤:


璺熶笂闈?涓緥瀛愮浉鍙嶏紙涓涓槸鍖呮嫭錛屼竴涓槸鎺掗櫎錛?br /> 鎺掓枼綺劇‘鍖歸厤(杈撳叆cssrain鎴栬卭ur鎴栬卌ake):
鎺掓枼閮ㄥ垎鍖歸厤:


楠岃瘉澶嶉夋:
瀵嗙爜紜錛?
紜瀵嗙爜:
Email楠岃瘉:
Email楠岃瘉(緇煎悎鏍¢獙涓嶈兘灝忎簬10澶т簬20浣?

緇忚繃鎴戠殑淇敼錛屾彁紺轟俊鎭凡緇忔槸涓枃鐨勩傜敤鎴峰彲浠ユ牴鎹嚜宸辯殑闇瑕佷慨鏀圭浉搴旂殑鎻愮ず淇℃伅銆?/div>
 

 

LiveValidation涓枃淇敼鐗堜笅杞?/a>



]]>鐢↗avaScript璁$畻瀛楃涓插崰鐢ㄥ瓧鑺傛暟 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鍘熷笘鍦板潃

鏈榪戝拰JavaScript綰犵紶涓婁簡銆?/p>

閬囧埌榪欎箞涓涓棶棰橈紝鏁版嵁搴撶殑瀛楃闆嗕負(fù)UTF-8鐨勶紝瑕佸湪欏甸潰涓婁嬌鐢↗avaScript楠岃瘉杈撳叆鐨勬枃鏈敤UTF-8瀛樺偍鏃跺崰鐢ㄥ瓧鑺傞暱搴︺侸avaScript鐨凷tring瀵硅薄鏈塴ength灞炴э紝浣嗘槸榪欎釜璁$畻鐨勬槸瀛楃鏁幫紝涓嶆槸瀛楄妭鏁幫紙闂鎬繪槸緲繪潵瑕嗗幓鐨勶紝璁板緱褰撳勾鐜〥elphi鐨勬椂鍊欙紝榪樺緱鍐欑▼搴忚綆楀瓧絎︿覆鐨勫瓧絎︽暟錛屽洜涓篋elphi涓璖tring鐨刲ength鏄瓧鑺傛暟...錛夈傚伔鎳掍竴鐐圭殑鍔炴硶鏄皢楠岃瘉浠g爜涓渶澶ч暱搴﹁緗負(fù)鏁版嵁搴撲腑瀵瑰簲瀛楁鐨勯暱搴︾殑1/3錛屼絾鏄繖鏍峰噯紜潵璇存湁鐐逛笉鍚堥傘?/p>

鎵浠ユ兂鍔炴硶鍦↗avaScript涓垽鏂湪UTF-8涓嬪瓨鍌ㄧ殑String鐨勫瓧鑺傛暟錛屽湪緗戜笂鎵懼埌寰堝鍏充簬Unicode浠嬬粛鐨勬枃妗o紝鏈閲嶈鐨勬槸瀛楃緙栫爜鏁板煎搴旂殑瀛樺偍闀垮害錛?/p>

UCS-2緙栫爜(16榪涘埗) UTF-8 瀛楄妭嫻?浜岃繘鍒?
0000 - 007F 0xxxxxxx 錛?瀛楄妭錛?br /> 0080 - 07FF 110xxxxx 10xxxxxx 錛?瀛楄妭錛?br /> 0800 - FFFF 1110xxxx 10xxxxxx 10xxxxxx 錛?瀛楄妭錛?

 

浜庢槸浠g爜濡備笅錛?/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涔嬮棿鐨勫瓧絎﹀緢灝戜細(xì)鍦ㄥ疄闄呯敤鎴瘋緭鍏ヤ腑鐢ㄥ埌銆?/p>

 

鍙傝冩枃妗o細(xì)

紼嬪簭鍛樿叮鍛寵鐗╋細(xì)璋堣皥Unicode緙栫爜 http://www.lihuasoft.net/article/show.php?id=2778



]]>
瓚呭己鐨凧avascript浠縌Q瀵艱埅鑿滃崟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闃呰鍏ㄦ枃

]]>
楠岃瘉鏂囦歡鎵╁睍鍚嶇殑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/**
        楠岃瘉鏂囦歡鎵╁睍鍚嶆槸鍚﹀悎娉?br />     *
*/

   
function  checkFiles(str)
   
{
        
var strRegex = "(.jpg|.png|.gif|.ps|.jpeg)$"//鐢ㄤ簬楠岃瘉鍥劇墖鎵╁睍鍚嶇殑姝e垯琛ㄨ揪寮?/span>
        var re=new RegExp(strRegex);
        
if (re.test(str.toLowerCase())){
            
return true;
        }

        
else{
            alert(
"鏂囦歡鍚嶄笉鍚堟硶,鏂囦歡鐨勬墿灞曞悕蹇呴』涓簀pg,jpeg,gif鎴杙s鏍煎紡"); 
            
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> 浣滆咃細(xì)椋庝腑鍙?nbsp;</TITLE>
  
<META NAME="Generator" CONTENT="EditPlus">
  
<META NAME="Author" CONTENT="">
  
<META NAME="Keywords" CONTENT="">
  
<META NAME="Description" CONTENT="">

<SCRIPT LANGUAGE="JavaScript">
  
//灝唖tring杞崲涓篋ate
  //str蹇呴』婊¤凍濡備笅鏍煎紡: 2008-04-29
  function convertString2Date(str)
  
{
   
//鐢ㄦ埛split鍒嗛殧鍑烘暟緇?灝嗗寘鍚?涓厓绱?騫?鏈?鏃?/span>
   var splitArray = str.split("-");
   
   
// 鐢ㄥ勾,鏈?鏃ユ瀯閫犳棩鏈熷璞?/span>
   // splitArray[0]-> year, splitArray[1]-> month, splitArray[2]->day
   // 榪欐椂瑕佹敞鎰忔湀浠芥槸浠?寮濮嬬殑
   var date = new Date(splitArray[0], splitArray[1- 1, splitArray[2]);
  
   
return date;
  }


  
// 寰楀埌date1鍜宒ate2涔嬮棿鐨勯棿闅?/span>
  // date2瑕佹瘮date1澶?/span>
  // date瑕佹弧瓚沖涓嬫牸寮? 2008-04-29
  //鍙傛暟date1鍜宒ate2綾誨瀷搴旇鏄疭tring鎴朌ate
  // 紜繚涓ょ綾誨瀷娌℃湁闂
  function getIntervalBetweenTwoDates(date1, date2)
  
{
   
var realDate1 = date1;
   
var realDate2 = date2;
   
   
// 濡傛灉date1鏄疍ate綾誨瀷灝變笉鐢ㄨ漿鎹?/span>
   if(!(date1 instanceof Date))
   
{
    realDate1 
= convertString2Date(date1);
   }

   
// 濡傛灉date2鏄疍ate綾誨瀷灝變笉鐢ㄨ漿鎹?/span>
   if(!(date2 instanceof Date))
   
{
    realDate2 
= convertString2Date(date2);
   }

   
   
//寰楀埌緇濆鍊?(realDate2.getTime() - realDate1.getTime())榪斿洖鐨勬槸姣鎵浠ヨ鍏堥櫎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涓篋ate
   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>


]]>
涓囪兘鐨刟lt灞炴?/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  @ 浣滆咃細(xì)Andyfoo @ 鍔熻兘錛氭彁紺哄伐鍏鋒潯 @ 鏃ユ湡錛?008-3-1 @ 緗戝潃錛歨ttp://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鐨凲Q鑿滃崟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闃呰鍏ㄦ枃

]]>
璁ゝorm鍝嶅簲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> 欏轟究璇翠笅鎸夐挳涓殑<strong>accesskey</strong>灞炴э紟<br /> 瀹氫箟浜?strong>accesskey</strong>鐨勯摼鎺ュ彲浠ヤ嬌鐢ㄥ揩鎹烽敭(<strong>ALT+瀛楁瘝</strong>)璁塊棶.<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璁塊棶姝ゆ寜閽紟<br /> <br /> 2.濡備綍浣縡orm涓殑submit鎸夐挳涓嶅搷搴斿洖杞﹂敭錛?br /> 絎竴縐嶆柟寮?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> 絎簩縐嶆柟寮?鏁翠釜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>鍒ゆ柇涓涓猣orm涓殑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瀵逛簬鏈夋椂鍊欒閫夋嫨鎴栧彇娑堥〉闈腑鐨刢heckbox錛屽綋鐒朵篃鏈嶅姟鍣ㄧ涔熷彲浠ュ仛銆備絾鎬昏寰楁晥鐜囦笉楂樸備笉濡傜敤JS鐨勩?br />

涓嶆秹鍙?qiáng)瀹夊叏鑳界敤JS灝辯敤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>

欏甸潰涓姞涓婏細(xì)

<INPUT onclick="javascript:SelectAll(this);" type="checkbox">閫変腑鎵鏈夌殑鐭秷鎭?/span>
鍏跺疄鍏朵粬鐨勯夋嫨鎸夐挳涔熷樊涓嶅鐨勭敤娉曘?/span>

]]>
JavaScript浠縊ffice棰滆壊閫夋嫨鍣?/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 /> 寤朵幾涓涓嬶紝鍔ㄦ佸垱寤篿nput浠繪剰鍏冪礌浠g爜鐗囨濡備笅鍗沖彲:<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>鏍囧噯鐨勫姩鎬佹樉紺哄綋鍓嶆椂闂寸殑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鍏ㄦ柟浣嶆搷浣淐ookiehttp://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闃呰鍏ㄦ枃

]]>
鐢╦avascript瀹炵幇鐨則ip鏁堟灉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';
}

榪欎釜寰楀姞鍦?lt;/body>緇撴潫鏍囩鐨勫墠闈?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>
<!--娉ㄦ剰榪欎釜寮曞叆蹇呴』鍦ㄤ笅闈?->
<script type="text/javascript" src="../js/tip.js"></script>
</body>
榪欓噷闈㈢殑鏁堟灉灞傚氨鏄繖涓猟iv.
鍦ㄦ兂瑕佸簲鐢?tip鐨勬枃瀛椾笂闈㈠姞涓?lt;span></span>鏍囩鍗沖彲

]]>
楠岃瘉琛ㄥ崟鐨勬爣鍑咼avaScripthttp://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 = "鐢ㄦ埛鍚嶄笉涓鴻兘絀?/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++//鍘誨乏絀烘牸 
銆銆銆銆銆if(s.charAt(i)!=' '){b=i;break;}銆 
銆銆 
if(i==s.length)銆 
銆銆銆銆
return"";銆 

銆 
for(i=s.length-1;i>b;i--)銆鍘誨彸絀烘牸 
銆銆銆 
if(s.charAt(i)!=' '){e=i;break;}銆 
return銆s.substring(b,e+1);銆 
}
 
涓嬮潰鐨勬洿濂界偣:
//鍘誨乏絀烘牸; 
function ltrim(s)
return s.replace( /^\s*/""); 
}
 
//鍘誨彸絀烘牸; 
function rtrim(s)
return s.replace( /\s*$/""); 
}
 
//鍘誨乏鍙崇┖鏍? 
function trim(s)
return rtrim(ltrim(s)); 
}
 


]]>
鍝嶅簲鍥炶濺鍜屽垽鏂槸鍚︿負(fù)鏁板瓧鐨勫嚱鏁?鍙敤浜庡垎欏?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()
{
   
// 鍝嶅簲鍥炶濺
   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"/>" />
鍏朵腑鐨則otalPage鏄氳繃鍒嗛〉綾葷畻鍑烘潵鐨?

]]>
主站蜘蛛池模板: 长武县| 琼中| 广水市| 武城县| 稻城县| 荔波县| 中宁县| 秦皇岛市| 攀枝花市| 克什克腾旗| 郧西县| 甘泉县| 永宁县| 容城县| 会宁县| 垣曲县| 濉溪县| 诏安县| 团风县| 鲁山县| 宜宾县| 都江堰市| 都兰县| 马公市| 两当县| 贵州省| 河南省| 大田县| 元氏县| 马公市| 昌邑市| 买车| 府谷县| 广德县| 车险| 临武县| 龙井市| 舞阳县| 乐东| 历史| 辽阳市|