Script

ĶTOP10

ɱ༭ HTML JavaScript ؼ DataGrid II
JavaScriptͨÿ⣨һ
һ򵥵javascript˵
selectʱ
javascript֮ݴݣ
ҳпwmplayer
վͳƴ
ҳԶ
24ս(javascript)
gb2312ϵƵ

VCDelphi
VBASP
PerlJava
Scriptݿ
Ϸ
ļʽվ
.NET
gb2312ϵƵ

δ֪ Դ¹վ ʱ2005-2-28¹վ

<title>..:: gb2312freq version4 ::.. win2000server & ie6sp1 & cr1.2g & 128m</title>

0.<br>
<center><a href="javascript:window.location.reload()">Reload All</a></center>
<input id=inpu0 type=button value="Auto Run!" onclick=f_inpu0()>
<input id=inpu0a size=6>
to<input id=inpu0b size=7>
DELAY=<input id=inpu0c size=8 value=1000><br>
Start time<input id=inpu0d size=25>
End time<input id=inpu0e size=25><br>
Report per<input id=inpu0f size=8 value=1000>char
<input id=inpu0z type=button value="User Stop!!!" onclick=f_inpu0z()><br>

1.<br>
<input name=radi1 type=radio onclick=f_radi1()>CLEAR
<input name=radi1 type=radio onclick=f_radi1()>Get BG2312
<input name=radi1 type=radio onclick=f_radi1() checked>3755<br>
<textarea id=text1 style="width: 90%; height: 50%"></textarea><br>

2.<br>
<input id=inpu2 onclick=f_inpu2() type=button value="search 0-???">
<input id=inpu2a size=8>
URL=
<input id=inpu2b size=9>
<input id=inpu2c size=10 readonly>
<input id=inpu2d size=11>
<INPUT name=radi2 type=radio onclick=f_radi2() checked>baidu
<INPUT name=radi2 type=radio onclick=f_radi2()>google<br>
<iframe id=ifra2 src="about:" width=90% height=50%></iframe><br>

3.<br>
<input id=inpu3 onclick=f_inpu3();pagedown() type=button value="source">
between<input id=inpu3a>
and<input id=inpu3b>
=<input id=inpu3c><br>
<textarea id=text3 style="width: 90%; height: 50%"></textarea><br>

4.<br>
<input id=inpu4 onclick=f_inpu4();pageup() type=button value="result">
<input id=inpu4a><br>
<textarea id=text4 style="width: 90%; height: 50%"></textarea><br>

 

 

<script>
///////////////////////////// user function //////////////////////////////////
function f_inpu0()
{
  inpu0d.value=Date() //set start time
  inpu0e.value='' //set end time empty
  inpu2a.value=inpu0a.value //before search, set start char

  autorun() //run search
}
function autorun()
{
  if(Number(inpu0a.value)<Number(inpu0b.value)) //if OK continue Auto Run
  {
    inpu0e.value=Date() //set end time
    inpu0a.value++ //prepare for next char

    f_inpu2()
    f_inpu3()
    f_inpu4()

    setTimeout('autorun()',inpu0c.value) //delay for next Auto Run
  }
  else
  {
//alert(inpu0a.value+"\n"+inpu0b.value)
  }

  if(inpu0a.value%inpu0f.value==0) //if need give a report
  {
    report() //give a report
  }
}

function f_inpu0z()
{
  inpu0b.value=inpu0a.value //stop!!!
}

function f_radi1()
{
  if(radi1[0].checked==true)
  {
    inpu0a.value=0 //set autorun start
    inpu0b.value=0 //set autorun end
    text1.value=''
  }
  else if(radi1[1].checked==true) //if need 6763 of gb2312
  {
    inpu0a.value=0 //set autorun start
    inpu0b.value=6763 //set autorun end
    tmpstr=text0.value //get gb2312 full string
    tmpstr=tmpstr.substring(tmpstr.indexOf("01"),tmpstr.length) //del "...GB 2312-80"
    tmpstr=tmpstr.replace(/[^\u4e00-\u9fa5]/g,"") //del no GB2312
    text1.value=tmpstr //put string to text1
  }
  else if(radi1[2].checked==true) //if need 3755 of gb2312
  {
    inpu0a.value=0 //set autorun start
    inpu0b.value=3755 //set autorun end
    tmpstr=text0.value //get gb2312 full string
    tmpstr=tmpstr.substring(tmpstr.indexOf("01"),tmpstr.length) //del "...GB 2312-80"
    tmpstr=tmpstr.replace(/[^\u4e00-\u9fa5]/g,"") //del no GB2312
    text1.value=tmpstr //put string to text1
    text1.value=text1.value.substring(0,3755) //get the first 3755 char
  }
}

function f_inpu2()
{
  inpu2c.value=text1.value.charAt(inpu2a.value) //current char

  if(radi2[1].checked==true) //if google
  {
    inpu2c.value=encodeURIComponent(inpu2c.value) //change string to encode for google
  }

  tmpsrc = '<iframe id=ifra2 src="'
         + inpu2b.value
         + inpu2c.value
         + inpu2d.value
         + '"width=90%  height=50%></iframe>' //prepare the search char

  document.all.ifra2.outerHTML=tmpsrc //run search

  inpu2a.value++ //prepare next search
}

function f_radi2()
{
  if(radi2[0].checked==true) //if baidu
  {
    inpu2b.value="http://www1.baidu.com/baidu?word="
    inpu2c.value=""
    inpu2d.value=""
    inpu3a.value="ٶΪҵҳԼ"
    inpu3b.value="ƪʱ"
    inpu3c.value=""
  }
  else if(radi2[1].checked==true) //if google
  {
    inpu2b.value="http://www.google.com/search?hl=zh-CN&ie=UTF-8&oe=UTF-8&q="
    inpu2c.value=""
    inpu2d.value="&lr=lang_zh-CN"
    inpu3a.value=" <b>"
    inpu3b.value="</b> ѯǵ"
    inpu3c.value=""
  }
}

function f_inpu3()
{
  if(radi2[0].checked==true) //if baidu
  {
    text3.value=bytes2bstr(loadContent(document.getElementById("ifra2").src)) //put source
  }
  else if(radi2[1].checked==true) //if google
  {
    text3.value=loadUTF8(document.getElementById("ifra2").src) //the source of google is UTF-8
  }

  tmpstr=text3.value
  if(tmpstr.indexOf(inpu3a.value)>-1&&tmpstr.indexOf(inpu3b.value)>-1) //if found
  {
    tmpstr=tmpstr.substring(tmpstr.indexOf(inpu3a.value) + inpu3a.value.length,
                            tmpstr.indexOf(inpu3b.value)) //get useful source
  }
  else
  {
    tmpstr=":(" //if not found
  }
  inpu3c.value=tmpstr //write to inpu3c.value
}
function loadUTF8(strURL) //for google (used for "function f_inpu3()")
{
 var strContent = "";
 if (typeof strURL != "string" || strURL == "")return strContent;
 try
 {
  var oProxy = new ActiveXObject("Microsoft.XMLHTTP");
  
  oProxy["Open"]("GET", strURL, false);
  oProxy["Send"]();
  strContent = oProxy["responseText"]; //get Text html
///  strContent = oProxy["responseBody"]; //get Bin html, and then change2text
 }
 catch(e){status = e.description}
 return strContent;
}
function loadContent(strURL) //I get this code from a friend (used for "function f_inpu3()")
{
 var strContent = "";
 if (typeof strURL != "string" || strURL == "")return strContent;
 try
 {
  var oProxy = new ActiveXObject("Microsoft.XMLHTTP");
  
  oProxy["Open"]("GET", strURL, false);
  oProxy["Send"]();
///  strContent = oProxy["responseText"]; //get Text html
  strContent = oProxy["responseBody"]; //get Bin html, and then change2text
 }
 catch(e){status = e.description}
 return strContent;
}
function bytes2bstr(vin) //Have this code from a friend (used for "function f_inpu3()")
{
 var st = new ActiveXObject("adodb.stream")
 with (st){
  Type = 2 //var adTypeBinary = 1; var adTypeText = 2
  Open()
  WriteText(vin)
  Position = 0
  Charset = "GB2312"
  Position = 2
  return ReadText
 }
}

function f_inpu4()
{
  text4.value=text4.value+text1.value.charAt(inpu2a.value-1)+'\t'+inpu3c.value+'\n' //get current full result to text4
  text4.scrollTop=text4.scrollHeight //scroll down to bottom

  inpu4a.value=text4.value.split('\n').length-1 //totol line
}

function pagedown()
{
  document.body.scrollTop += document.body.clientHeight/2 //scroll down half screen
}

function pageup()
{
  document.body.scrollTop -= document.body.clientHeight //scroll up a screen
}

function report()
{
//  alert()
}
</script>


<script>
///////////////////////////// system function /////////////////////////////////
function window.onload()
{
  inpu2a.value=0 //set init is null
  f_radi1() //set default chars
  f_radi2() //set search engine
}
</script>

 

 

 

 


<textarea id=text0 style="visibility:hidden">
     л񹲺͹ұ׼
    Ϣúֱַ
              
          GB 2312-80


01









02









03









04









05









06









07









08









09









10









11









12









13









14









15









16









17









18









19









20









21









22









23









24









25









26









27









28









29









30









31









32









33









34
¡ ¢ £ ¤ ¥ ¦ § ¨ ©
ª « ¬ ­ ® ¯ ° ± ² ³
´ µ ¶ · ¸ ¹ º » ¼ ½
¾ ¿





35
á â ã ä å æ ç è é
ê ë ì í î ï ð ñ ò ó
ô õ ö ÷ ø ù ú û ü ý
þ ÿ





36
ġ Ģ ģ Ĥ ĥ Ħ ħ Ĩ ĩ
Ī ī Ĭ ĭ Į į İ ı IJ ij
Ĵ ĵ Ķ ķ ĸ Ĺ ĺ Ļ ļ Ľ
ľ Ŀ





37
š Ţ ţ Ť ť Ŧ ŧ Ũ ũ
Ū ū Ŭ ŭ Ů ů Ű ű Ų ų
Ŵ ŵ Ŷ ŷ Ÿ Ź ź Ż ż Ž
ž ſ





38
ơ Ƣ ƣ Ƥ ƥ Ʀ Ƨ ƨ Ʃ
ƪ ƫ Ƭ ƭ Ʈ Ư ư Ʊ Ʋ Ƴ
ƴ Ƶ ƶ Ʒ Ƹ ƹ ƺ ƻ Ƽ ƽ
ƾ ƿ





39
ǡ Ǣ ǣ Ǥ ǥ Ǧ ǧ Ǩ ǩ
Ǫ ǫ Ǭ ǭ Ǯ ǯ ǰ DZ Dz dz
Ǵ ǵ Ƕ Ƿ Ǹ ǹ Ǻ ǻ Ǽ ǽ
Ǿ ǿ





40
ȡ Ȣ ȣ Ȥ ȥ Ȧ ȧ Ȩ ȩ
Ȫ ȫ Ȭ ȭ Ȯ ȯ Ȱ ȱ Ȳ ȳ
ȴ ȵ ȶ ȷ ȸ ȹ Ⱥ Ȼ ȼ Ƚ
Ⱦ ȿ





41
ɡ ɢ ɣ ɤ ɥ ɦ ɧ ɨ ɩ
ɪ ɫ ɬ ɭ ɮ ɯ ɰ ɱ ɲ ɳ
ɴ ɵ ɶ ɷ ɸ ɹ ɺ ɻ ɼ ɽ
ɾ ɿ





42
ʡ ʢ ʣ ʤ ʥ ʦ ʧ ʨ ʩ
ʪ ʫ ʬ ʭ ʮ ʯ ʰ ʱ ʲ ʳ
ʴ ʵ ʶ ʷ ʸ ʹ ʺ ʻ ʼ ʽ
ʾ ʿ





43
ˡ ˢ ˣ ˤ ˥ ˦ ˧ ˨ ˩
˪ ˫ ˬ ˭ ˮ ˯ ˰ ˱ ˲ ˳
˴ ˵ ˶ ˷ ˸ ˹ ˺ ˻ ˼ ˽
˾ ˿





44
̡ ̢ ̣ ̤ ̥ ̦ ̧ ̨ ̩
̪ ̫ ̬ ̭ ̮ ̯ ̰ ̱ ̲ ̳
̴ ̵ ̶ ̷ ̸ ̹ ̺ ̻ ̼ ̽
̾ ̿





45
͡ ͢ ͣ ͤ ͥ ͦ ͧ ͨ ͩ
ͪ ͫ ͬ ͭ ͮ ͯ Ͱ ͱ Ͳ ͳ
ʹ ͵ Ͷ ͷ ͸ ͹ ͺ ͻ ͼ ͽ
; Ϳ





46
Ρ ΢ Σ Τ Υ Φ Χ Ψ Ω
Ϊ Ϋ ά έ ή ί ΰ α β γ
δ ε ζ η θ ι κ λ μ ν
ξ ο





47
ϡ Ϣ ϣ Ϥ ϥ Ϧ ϧ Ϩ ϩ
Ϫ ϫ Ϭ ϭ Ϯ ϯ ϰ ϱ ϲ ϳ
ϴ ϵ ϶ Ϸ ϸ Ϲ Ϻ ϻ ϼ Ͻ
Ͼ Ͽ





48
С Т У Ф Х Ц Ч Ш Щ
Ъ Ы Ь Э Ю Я а б в г
д е ж з и й к л м н
о п





49
ѡ Ѣ ѣ Ѥ ѥ Ѧ ѧ Ѩ ѩ
Ѫ ѫ Ѭ ѭ Ѯ ѯ Ѱ ѱ Ѳ ѳ
Ѵ ѵ Ѷ ѷ Ѹ ѹ Ѻ ѻ Ѽ ѽ
Ѿ ѿ





50
ҡ Ң ң Ҥ ҥ Ҧ ҧ Ҩ ҩ
Ҫ ҫ Ҭ ҭ Ү ү Ұ ұ Ҳ ҳ
Ҵ ҵ Ҷ ҷ Ҹ ҹ Һ һ Ҽ ҽ
Ҿ ҿ





51
ӡ Ӣ ӣ Ӥ ӥ Ӧ ӧ Ө ө
Ӫ ӫ Ӭ ӭ Ӯ ӯ Ӱ ӱ Ӳ ӳ
Ӵ ӵ Ӷ ӷ Ӹ ӹ Ӻ ӻ Ӽ ӽ
Ӿ ӿ





52
ԡ Ԣ ԣ Ԥ ԥ Ԧ ԧ Ԩ ԩ
Ԫ ԫ Ԭ ԭ Ԯ ԯ ԰ Ա Բ Գ
Դ Ե Զ Է Ը Թ Ժ Ի Լ Խ
Ծ Կ





53
ա բ գ դ ե զ է ը թ
ժ ի լ խ ծ կ հ ձ ղ ճ
մ յ ն շ ո չ պ ջ ռ ս
վ տ





54
֡ ֢ ֣ ֤ ֥ ֦ ֧ ֨ ֩
֪ ֫ ֬ ֭ ֮ ֯ ְ ֱ ֲ ֳ
ִ ֵ ֶ ַ ָ ֹ ֺ ֻ ּ ֽ
־ ֿ





55
ס ע ף פ ץ צ ק ר ש
ת ׫ ׬ ׭ ׮ ׯ װ ױ ײ ׳
״ ׵ ׶ ׷ ׸ ׹ ׺ ׻ ׼ ׽
׾ ׿





56
ء آ أ ؤ إ ئ ا ب ة
ت ث ج ح خ د ذ ر ز س
ش ص ض ط ظ ع غ ػ ؼ ؽ
ؾ ؿ





57
١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩
٪ ٫ ٬ ٭ ٮ ٯ ٰ ٱ ٲ ٳ
ٴ ٵ ٶ ٷ ٸ ٹ ٺ ٻ ټ ٽ
پ ٿ





58
ڡ ڢ ڣ ڤ ڥ ڦ ڧ ڨ ک
ڪ ګ ڬ ڭ ڮ گ ڰ ڱ ڲ ڳ
ڴ ڵ ڶ ڷ ڸ ڹ ں ڻ ڼ ڽ
ھ ڿ





59
ۡ ۢ ۣ ۤ ۥ ۦ ۧ ۨ ۩
۪ ۫ ۬ ۭ ۮ ۯ ۰ ۱ ۲ ۳
۴ ۵ ۶ ۷ ۸ ۹ ۺ ۻ ۼ ۽
۾ ۿ





60
ܡ ܢ ܣ ܤ ܥ ܦ ܧ ܨ ܩ
ܪ ܫ ܬ ܭ ܮ ܯ ܰ ܱ ܲ ܳ
ܴ ܵ ܶ ܷ ܸ ܹ ܺ ܻ ܼ ܽ
ܾ ܿ





61
ݡ ݢ ݣ ݤ ݥ ݦ ݧ ݨ ݩ
ݪ ݫ ݬ ݭ ݮ ݯ ݰ ݱ ݲ ݳ
ݴ ݵ ݶ ݷ ݸ ݹ ݺ ݻ ݼ ݽ
ݾ ݿ





62
ޡ ޢ ޣ ޤ ޥ ަ ާ ި ީ
ު ޫ ެ ޭ ޮ ޯ ް ޱ ޲ ޳
޴ ޵ ޶ ޷ ޸ ޹ ޺ ޻ ޼ ޽
޾ ޿





63
ߡ ߢ ߣ ߤ ߥ ߦ ߧ ߨ ߩ
ߪ ߫ ߬ ߭ ߮ ߯ ߰ ߱ ߲ ߳
ߴ ߵ ߶ ߷ ߸ ߹ ߺ ߻ ߼ ߽
߾ ߿





64









65









66









67









68









69









70









71









72









73









74









75









76









77









78









79









80









81









82









83









84









85









86









87










</textarea><br>







¹ԴĵԽ̳վŻַѧϷдݱվ
Լ̿ר̸˵ϷԪϷϷ˶ֻרҵమӰɳ
԰ѧŽݺ̸۽ҽѧͼרطиҵ

¹վȨ