1function vsb_news_search_entry() 2{ 3 _searchthis = this; 4 this.formname=""; 5 this.formobj=""; 6 this.news_search_obj; 7 this.querytxtsize = 155; 8 this.yzmts=""; 9 this.qdstyle=""; 10 this.qdname=""; 11 this.qxstyle=""; 12 this.qxname=""; 13 this.showstr="请è¾å ¥æ¥è¯¢éªè¯ç "; 14 this.searchCodestr = "searchCode"; 15} 16vsb_news_search_entry.prototype = 17{ 18 checkdata:function(formname) 19 { 20 var base64 = new Base64(); 21 _searchthis.formobj = formname; 22 if(window.toFF==1) 23 { 24 var ssvalue = formname.INTEXT.value; 25 formname.INTEXT2.value = Simplized(ssvalue); 26 //new VsbFormFunc().disableAutoEnable(formname.INTEXT); 27 formname.INTEXT2.value = base64.encode(formname.INTEXT2.value); 28 formname.INTEXT.value =""; 29 }else 30 { 31 formname.INTEXT2.value = formname.INTEXT.value; 32 //new VsbFormFunc().disableAutoEnable(formname.INTEXT); 33 formname.INTEXT2.value = base64.encode(formname.INTEXT2.value); 34 formname.INTEXT.value =""; 35 } 36 if(_searchthis.news_search_obj.isShowCode==false) 37 { 38 NewsSearchDWR.isSearch(_searchthis.getSearchResult); 39 }else 40 { 41 var searchCode = document.getElementById(_searchthis.searchCodestr+_searchthis.formname); 42 if(searchCode) 43 { 44 if(searchCode.value=="") 45 { 46 searchCode.focus(); 47 alert(_searchthis.showstr); 48 49 return false; 50 }else 51 { 52 formname.news_search_code.value=searchCode.value; 53 _searchthis.news_search_obj.isShowCode = false; 54 _searchthis.news_search_obj.exit(); 55 return true; 56 } 57 }else 58 { 59 return true; 60 } 61 } 62 return false; 63 }, 64 getSearchResult:function(data) 65 { 66 //alert(data); 67 if(data && data==true) 68 { 69 _searchthis.news_search_obj.isShowCode = false; 70 _searchthis.news_search_obj.exit(); 71 if(!_searchthis.isIE()) 72 { 73 74 var openformname = _searchthis.formname+parseInt(Math.random()*99); 75 var testopen = window.open("about:blank",openformname); 76 if(testopen) 77 { 78 _searchthis.formobj.target=openformname; 79 }else 80 { 81 _searchthis.formobj.target="_self" 82 } 83 } 84 _searchthis.formobj.submit(); 85 }else 86 { 87 _searchthis.news_search_obj.isShowCode = true; 88 _searchthis.createDiv(); 89 } 90 91 }, 92 createDiv:function() 93 { 94 var tagobj = _searchthis.formobj.INTEXT; 95 96 if(tagobj) 97 { 98 var content = "<table width='"+_searchthis.querytxtsize+"' ><tr><td colspan=2 style='font-size:10pt'>"+_searchthis.yzmts+"</td></tr><tr><td width='1%' nowrap><img src='/system/resource/code/news/newsearch/createimage.jsp' width='60' height='20'></td><td><input type='text' id='searchCode"+_searchthis.formname+"' name='searchCode"+_searchthis.formobj.name+"' value='' style='width:60px' maxlength='4'></input></td></tr><tr><td nowrap align='right' "+_searchthis.qdstyle+" style='font-size:10pt'><span onclick='if(document."+_searchthis.formobj.name+".onsubmit()){document."+_searchthis.formobj.name+".submit()} ' style='cursor:pointer;'>"+_searchthis.qdname+"</span></td><td "+_searchthis.qxstyle+" style='font-size:10pt;padding-left:10px' nowrap ><span onclick='_searchthis.hiddenDiv()' style='cursor:pointer;'>"+_searchthis.qxname+"</span></td></td></tr></table>"; 99 _searchthis.news_search_obj.tooltip(content,tagobj); 100 _searchthis.news_search_obj.addEvent(window,'resize',_searchthis.fixPosDiv,true); 101 _searchthis.formobj.INTEXT.disabled=false; 102 } 103 104 }, 105 fixPosDiv:function() 106 { 107 var obj = document.getElementById(_searchthis.news_search_obj.tooltipid); 108 var tagobj = document.getElementById(_searchthis.news_search_obj.apptag); 109 var tagframeobj = document.getElementById( _searchthis.news_search_obj.frametag); 110 111 if(obj) 112 { 113 var showleft = _searchthis.news_search_obj.tgetAbsLeft(tagobj)+ 'px'; 114 var showtop = _searchthis.news_search_obj.tgetAbsTop(tagobj) + _searchthis.formobj.INTEXT.clientHeight+3+ 'px'; 115 116 obj.style.left = showleft; 117 obj.style.top = showtop; 118 tagframeobj.style.left = showleft; 119 tagframeobj.style.top = showtop; 120 121 122 } 123 }, 124 isIE:function() 125 { 126 if(navigator.userAgent.indexOf("MSIE")>0) 127 { 128 return true; 129 } 130 }, 131 hiddenDiv:function() 132 { 133 _searchthis.news_search_obj.exit(); 134 _searchthis.news_search_obj.isShowCode = false; 135 136 } 137 138 139}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.