home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netrunner 2004 October
/
NETRUNNER0410.ISO
/
html
/
find.js
< prev
next >
Wrap
Text File
|
2004-03-26
|
2KB
|
73 lines
function search(key, category, newonly, caseinsensitive, target) {
write_header(key,target);
hitflag = false;
for(i = 0; i < datacount; i++) {
flag = false;
for(j = 0; j < paramcount; j++) {
if(caseinsensitive == 1) {
buf = data[i][j].toUpperCase();
if(buf.indexOf(key.toUpperCase()) != -1) {
flag = true;
}
} else {
if(data[i][j].indexOf(key) != -1) {
flag = true;
}
}
}
// ÉVïKé⌐é╟éñé⌐
if(newonly == 1) {
if(data[i][newonlyvect] == 1) flag = flag & true;
else flag = flag & false;
}
// æ╬Å█âJâeâSâè
if(category.length != 0) {
if(data[i][categoryvect].indexOf(category) != -1) flag = flag & true;
else flag = flag & false;
}
if(flag == true) {
write_data(i,target);
hitflag = true;
}
}
if(hitflag == false) {
not_found(key,target);
}
write_footer(key,target);
}
function write_header(key,w) {
w.document.open();
w.document.write('<html><meta http-equiv="Content-Style-Type" content="text/css">');
w.document.write('<link rel="stylesheet" href="./root.css" type="text/css">');
w.document.write('<head><title>îƒì⌡îïë╩ - ' + key + ' é┼îƒì⌡é╡é▄é╡é╜üB</title></head><body class="normal">');
}
function write_footer(key,w) {
w.document.write("Copyright(c)2004 SOFTBANK Publishing Inc. / NetRunner / neo-logue inc. All rights reserved.<br>");
w.document.write("</body></html>");
w.document.close();
}
function write_data(key,w) {
w.document.write("û╝Å╠ : " + data[key][1] + "<br>\n");
w.document.write("âoü[âWâçâô : " + data[key][2] + "<br>\n");
w.document.write("âtâ@âCâïû╝ : <a href=\"" + data[key][3] + "\">" + data[key][3] + "</a><br>\n");
w.document.write("ì∞Ä╥ : " + data[key][4] + "<br>\n");
w.document.write("URL : <a href=\"" + data[key][7] + "\" target=\"_blank\">" + data[key][7] + "</a><br>\n");
w.document.write("<hr>");
}
function not_found(key,w) {
w.document.write('î⌐é┬é⌐éΦé▄é╣é±é┼é╡é╜<br>');
w.document.write('üEö╝èpò╢ÄÜüAæSèpò╢ÄÜé≡ôⁿéΩæ╓éªé─ÄÄé╡é─é¡é╛é│éóüB<br>');
w.document.write('üEÅ≡îÅé≡éαéñÅ¡é╡î╕éτé╡é─ÄÄé╡é─é¡é╛é│éóüB<br><hr>');
}