JavaScript ʵÏֵļò·±×ª»»¹¦ÄÜ
//¼ò·±×ª»»¹¦ÄÜ
// ½«Ö¸¶¨ÔªËØÖеÄÎı¾×ª»»Îª¼òÌå
function bodytojt(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Simplized(bodys.innerHTML);
}
// ½«Ö¸¶¨ÔªËØÖеÄÎı¾×ª»»Îª·±Ìå
function bodytoft(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Traditionalized(bodys.innerHTML);
}
// ¼òÌå×Öµä±í
function JTPYStr()
{
return '°¨°ª°°®°¯°¿°À°Â°Ã°Ä°Æ°Ð°Ñ°Ò°Ó°Ô°Õ°Ú°Ü°Þ°â°ä°ì°í°ï°ð°ó°÷°ù°ý°þ±¡±¢±¤±¥±¦±¨±«±²±´±µ±·±¸±¹±Á±Ê±Ì±Í±Î±Ï±Ð±Õ±Ö±×±Ú±Û±Ü±Ý±Þ±ß±à±á±ä±æ±ç±è±î±ï±ð±ñ±ô±õ±ö±÷±ý²¦²§²ª²¬²²µ²·²¹²º²¾²¿²À²Á²Î²Ï²Ð²Ñ²Ò²Ó²Ô²Õ²Ö²×²Þ²à²á²â²ã²ï²ó²ô²õ²ö²÷²ø²ù²ú²û²ü²ý²þ³¡³¢³¤³¥³¦³§³¨³©³®³µ³·³¸³¹³º³»³¾³Â³Ä³Å³Æ³Í³Î³Ï³Ò³Õ³Ù³Û³Ü³Ý³ã³å³æ³ç³è³é³ê³ë³ì³ï³ñ³ò³ó³÷³ø³ù³ú³û´¡´¢´£´¤´¥´¦´§´«´¯´³´´´¸´¿´À´Á´Â´Ã´Ä´Å´Æ´Ç´È´É´Ê´Í´Ï´Ð´Ñ´Ó´Ô´Õ´Ö´×´Ø´Ù´Ú´Û´Ü´Ý´á´â´ã´è´é´ê´ë´ì´í´î´ï´ö´÷´ø´ûµ£µ¥µ¦µ§µ¨µªµ«µ¬µµ®µ¯µ°µ±µ²µ³µ´µµµ·µ¸µºµ»µ¼µÁµÅµÆµËµÎµÏµÐµÓµÔµÝµÞµßµàµáµâµãµåµæµçµëµìµíµîµöµ÷µøµùµúµûµüµýµþ¶¤¶¥¶§¶©¶«¶¶®¶¯¶°¶³¶·¶¿¶À¶Á¶Â¶Ã¶Ä¶Æ¶Í¶Ï¶Ð¶Ñ¶Ò¶Ó¶Ô¶Õ¶Ö¶×¶Ø¶Ù¶Ú¶Û¶Ü¶Ý¶Þ¶ß¶á¶â¶ì¶î¶ï¶ð¶ñ¶ó¶ô¶õ¶ö¶÷¶ù¶û¶ü¶ý·¡·¢·£·§·©·ª·¯·°·³·¶···¹·Ã·Ä·É·Ï·Ð·Ñ·×·Ø·Ü·ß·à·á·ã·ä·å·æ·ç·è·é·ê·ë·ì·í·ï·ô·õ·ø¸§¸¨¸³¸´¸µ¸¹¸º¸»¸¼¸¾¸¿¸À¸Á¸Â¸Ã¸Ä¸Å¸Æ¸Ç¸È¸É¸Ï¸Ð¸Ñ¸Ò¸Ó¸Ô¸Õ¸Ö¸Ù¸Ú¸Ý¸Þ¸â¸ã¸ä¸é¸ë¸ì¸í¸ó¸ô¸õ¸ö¸ø¸û¸þ¹¡¹¢¹£¹¨¹¬¹®¹±¹³¹µ¹¹¹º¹»¹¿¹Æ¹Ë¹Ð¹Ø¹Û¹Ü¹Ý¹ß¹á¹ã¹å¹æ¹è¹é¹ê¹ë¹ì¹î¹ñ¹ò¹ó¹ô¹õ¹ö¹÷¹ø¹ù¹ú¹ü¹ý¹þº¡º§º«ºººÒºÔºÕºÖº×ºØºÙºáºäºèºìºóºøºù»¤»¦»§»©»ª»»®»°»±»²»³»´»µ»¶»·»¸»¹»º»»»½»¾»¿»À»Á»Æ»Ç»È»É»Ñ»Ó»Ô»Õ»Ö»×»Ù»Ú»Û»Ý»Þ»ß»à»á»â»ã»ä»å»æ»ç»ë»í»ï»ñ»ô»õ»ö»÷»ú»û»ü»ý»þ¼¢¼¤¼¥¼¦¼§¼¨¼©¼«¼¬¼¼¶¼·¼¸¼¹¼»¼½¼Á¼Â¼Ã¼Æ¼Ç¼È¼Ê¼Ì¼Í¼Ï¼Ð¼Ô¼Õ¼Ö¼Ø¼Ù¼Ú¼Û¼Ý¼Þ¼ß¼à¼á¼ã¼ä¼è¼ê¼ë¼ì¼í¼î¼ï¼ð¼ñ¼ò¼ó¼ô¼õ¼ö¼÷¼ø¼ù¼ú¼û¼ü½¢½£½¤½¥½¦½§½¬½®½¯½°½±½²½´½¶½·½¸½¹½º½½½¾½¿½Á½Â½Ã½Ä½Å½È½É½Ê½Ë½Ì½Í½Î½Ï½Ñ½Ò½Õ½×½Ø½Ú¾¥¾ª¾¬¾¾¯¾°¾±¾²¾³¾´¾µ¾¶¾·¾¸¾¹¾º¾»¾À¾Ç¾È¾É¾Ô¾Ù¾Ý¾â¾å¾ç¾è¾é¾î¾ï¾ð½Ü½Ý½Þ½ß½à½á½ä½å½æ½ë½ì½ô½õ½ö½÷½ø½ù½ú½ý½þ¾¡¾¢¾£¾¤¾õ¾ö¾÷¾ø¾û¾ü¾þ¿¡¿¢¿£¿¤¿¥¿ª¿«¿¿®¿°¿±¿²¿³¿µ¿¶¿·¿Ä¿Å¿Ç¿È¿Î¿Ñ¿Ò¿Ù¿â¿ã¿ä¿é¿ë¿í¿ó¿õ¿ö¿÷¿ù¿ú¿û¿ü¿ý¿þÀ¡À¢À£À¤À©ÀªÀ«À®À¯À°À³À´ÀµÀ¶À·À¸À¹ÀºÀ»À¼À½À¾À¿ÀÀÀÁÀÂÀÃÀÄÀÈÀÌÀÍÀÓÀÔÀÕÀÖÀØÀÝÀÞÀßÀàÀáÀãÀäÀåÀæÀçÀèÀéÀêÀëÀìÀíÀïÀðÀñÀòÀóÀöÀ÷ÀøÀùÀúÀüÁ¡Á£Á¤Á¥Á§Á¨Á©ÁªÁ«Á¬ÁÁ®Á¯Á°Á±Á²Á³Á´ÁµÁ¶Á
Ïà¹ØÎĵµ£º
//»ñÈ¡Ò³ÃæÊý¾Ý
function getPageSize(){
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {
xScroll = document.body.scrollWidth;
yScroll = window.inn ......
JavaScript·½·¨ºÍ¼¼ÇÉ´óÈ«
1£º»ù´¡ÖªÊ¶
1 ´´½¨½Å±¾¿é
1: <script language=”JavaScript”>
2: JavaScript code goes here
3: </script>
2 Òþ²Ø½Å±¾´úÂë
1: <script language=”JavaScript”>
2: ......
ÄÚÈÝ´ÓÍøÉÏÊÕ¼¯,ÊÕ¼¯Ä¿µÄ½ö¹©Ñо¿¡¢Ñ§Ï°¡£Éæ¼°°æȨ»ò²»Ï£ÍûÊÕ¼ÄúµÄÎÄÕÂÇëÄú¼°Ê±ÓëÎÒÁªÏµ¡£
·½·¨Ò»:
¸öÈËÈÏΪ×îºÃµÄ·½·¨.²ÉÓõÄÊÇÕýÔò±í´ïʽ,ÕâÊÇ×îºËÐĵÄÔÀí.
Æä´Î.Õâ¸ö·½·¨Ê¹ÓÃÁËJavaScript µÄprototype ÊôÐÔ
ÆäʵÄ㲻ʹÓÃÕâ¸öÊôÐÔÒ»Ñù¿ÉÒÔÓú¯ÊýʵÏÖ.µ«ÕâÑù×öºóÓÃÆðÀ´±È½Ï·½±ã.
ÏÂÃæ¾ÍÀ´¿´¿´Õâ¸öÊôÐÔÊÇÔõôÀ´ÓÃµÄ ......
1: ±éÀú²¢Êä³öTableÖÐÖµ
<table id="tb">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</ ......
ÏÂÃ涼ÊÇÎÒÊÕ¼¯µÄһЩ±È½Ï³£ÓõÄÕýÔò±í´ïʽ£¬ÒòΪƽ³£¿ÉÄÜÔÚ±íµ¥ÑéÖ¤µÄʱºò£¬Óõ½µÄ±È½Ï¶à¡£ÌØ·¢³öÀ´£¬Èø÷λÅóÓѹ²Í¬Ê¹Ó᣺Ǻǡ£
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸ö ......