Scripting code _javascript Techniques for searching in-page with JavaScript

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/ Xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <meta name=" Author "content=" Sheneyan "/> <script type=" Text/javascript "> Function en Code (s) {return s.replace (/&/g, "&"). Replace (/</g, "<"). Replace (/>/g, ">"). Replace (/([\\\.\*\[\ ]\ (\) \$\^])/g, "\\$1"); function decode (s) {return s.replace/\\ ([\\\.\*\[\]\ (\) \$\^])/g, "$". Replace (/>/g, ">"). Replace (/</g, " < "). Replace (/&/g," & "); function Highlight (s) {if (s.length==0) {alert (' search keyword not filled in! '); return false; } s=encode (s); var obj=document.getelementsbytagname ("Body") [0]; var t=obj.innerhtml.replace (/<span\s+class=.? Highlight.? > ([^<>]*) <\/span>/gi, "$"); obj.innerhtml=t; var cnt=loopsearch (S,obj); t=obj.innerhtml var R=/{searchhl} ({(?!) \/SEARCHHL}) | [^{] *) {\/searchhl}/g t=t.replace (R, "<span class= ' highlight ' >$1</span>"); obj.innerhtml=t; Alert ("Search to the keyword" +cnt+ ")} function Loopsearch (s,obj) {var cnt=0; if (obj.nodetype==3) {cnt=replace (s,obj); return CNT; for (Var i=0,c;c=obj.childnodes[i];i++) {if (!c.classname| | c.classname!= "Highlight") Cnt+=loopsearch (S,C); } return CNT; function replace (s,dest) {var r=new RegExp (S, "G"); var tm=null; var T=dest.nodevalue; var cnt=0; if (Tm=t.match (R)) {cnt=tm.length; T=t.replace (R, "{SEARCHHL}" +decode (s) + "{/SEARCHHL}") dest.nodevalue=t; } return CNT; } </script> <style type= "Text/css" >. Highlight{background:green;font-weight:bold;color:white;} </style> </pead> <body> <form onsubmit= "Highlight (This.s.value); return false;" > <p><input name= "S" id= "s" title= Search content: "/><input type="Submit" value= "search"/></p> </form> <div id= "Content" > <p> "many times in the name of donation to our country to transfer unqualified medical equipment, and even medical waste. "Aqsiq" a paper "kill order" makes Agape, LDS and other U.S. foundations appear in the Chinese public view. </p> <p> </p> <p> </p> <p> </p> <p> Although the representative of the Foundation claims to be unaware of it, "medical waste" appears in the form of donations in Hubei, Beijing, Anhui and Inner Mongolia. </p> <p> Medical waste in Europe and the United States to deal with the high cost is a fact, and the reporter learned that agape input China's 30,000 U.S. dollars "donated goods", air freight costs as high as 400,000 U.S. dollars. </p> <p> "We are working with the General Customs, the Ministry of Commerce and the Ministry of Civil Affairs to standardize donations from foreign donors and to deal seriously with foreign donors who violate our laws and regulations." "</p> <p> at a press conference held yesterday afternoon, the AQSIQ director of inspection and supervision, Wang Xin made the gesture. Earlier November 4, a paper announcement by the bureau became a magnifying glass and a ban on the "American issue donation" event. </p> <p> the "159th 2005" Bulletin said that, in view of the United States Agape Foundation "repeatedly in the name of donations to our country to transfer unqualified medical equipment, and even medical waste," since the announcement of the date of the release of its medical equipment to China. </p> <p> on the day of November 4, a group of donations from the United States LDS Foundation, three containers from the Tianjin port (market-message) entry, and then by the China Charity Association allocated to Beijing, Anhui and other fields. </p> <p> as of November 11, the Comprehensive Customs and quality inspection departments of the circular, Hubei, Anhui, Beijing, Inner Mongolia and Hunan province, five provinces and cities, have appeared from the United States "problem donation." </p> &LT;P&GT In mid-November, AQSIQ had informed the U.S. Embassy in Beijing of the situation, and the latter had agreed to investigate the matter according to law. </p> <p> in yesterday's press conference, CCTV "weekly quality report" Reporter said that the group in Hunan, Hubei some hospitals have photographed the "problem donation" piled up in the hospital picture. Wang Xin said that they can only ensure that this year to investigate the two large number of "problem donation" did not flow into the civil. </p> <p> in the legal investigation of foreign donor agencies, quality inspection, the Ministry of Civil Affairs to jointly strengthen the domestic recipient of private institutions management. "We hope to take this opportunity to fill the gap in the law of overseas donations," he said. After the meeting, Wang Xin said in an interview with the Beijing News. </p> <p> <strong> Curse Wuhan </strong> </p> <p> September 6, Asian Heart Hospital, Hubei inspection and Quarantine Bureau The two batches of the donated goods to arrive this routine inspection. </p> <p> to the scene of more than 10 members, in addition to quality inspection staff, as well as from the United States Agape Foundation, Wuhan Charitable Association and Wuhan Asian Heart Hospital representatives of the three parties. </p> <p> These two batches of medical supplies by the United States Agape Foundation donated to the Wuhan Charitable Association, the value of 29422 U.S. dollars, a total of 138,647 pieces, 548 cases, mainly for heart surgery kits, syringes, reagents, wheelchairs and so on. According to the two documents signed by the two donors on April 16, 2005 and June 13, both shipments were delivered to the heart hospital. </p> <p> site test results were unexpected. According to Hubei television footage, most of the wheelchair is incomplete, some of the drugs until November 2004 has expired. </p> <p> AQSIQ Bulletin Results: Donated medical equipment 161 cartons, most of the products have expired in June 2005 (arrival date) before the expiration of the second batch of a total of 387 cartons, the majority of the product expiration period of 1990 to 2004 , and there are a large number of disposable syringes placed in the box, reagents and unknown liquid outflow, resulting in most products mildew, pollution, wheelchairs, test boxes and some disposable supplies for second-hand waste supplies. </p> <p> Hubei Inspection and Quarantine Bureau on the spotQuarantine the goods, another sample sent to a medical university in Wuhan for further identification. The latter result is that some of the samples are used and seriously contaminated medical supplies, such as endless use. If the implementation of destruction will also cause environmental pollution. </p> <p> "Seeing these medical supplies, we rejected them on the spot." "A person from the Wuhan Charity Association, according to the contract between the two parties," the United States a gape foundation donated medical supplies, must comply with China's "Commodity inspection law", such as unqualified inspection, all the consequences caused by the (Tennessee State) Agape Foundation. </p> <p> a Gape Foundation representative Feng Chuchi, appearing at the inspection site, claimed to be unaware of this. </p> <p> in the middle of October, the same in Wuhan, the local customs also exposed a "United States issue donation." This is considered to date the Wuhan customs seized the largest "foreign medical waste", weighing about 10 tons, worth more than 360,000 dollars. It was allocated to the Hubei Provincial Charitable Association by the China Charity Federation and provided by the American LDS Foundation (ldscharities). </p> </div> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.