»
EnglishFrenchVietnamese

Print - Search Script - JavaScriptBank.com

Full version: jsB@nk » Misc » Search Script
URL: https://www.javascriptbank.com/search-script.html

Search Script © JavaScriptBank.comThe simple inner search script.

Full version: jsB@nk » Misc » Search Script
URL: https://www.javascriptbank.com/search-script.html



CSS
<STYLE type=text/css>A:link {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 10pt; TEXT-DECORATION: none}A:active {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 10pt; TEXT-DECORATION: none}A:visited {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 10pt; TEXT-DECORATION: none}A:hover {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 10pt; TEXT-DECORATION: none}.seven {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 32pt}.six {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 28pt}.five {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 22pt}.four {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 14pt}.three {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 12pt}.two {COLOR: rgb(0,102,225); FONT-FAMILY: Arial Unicode MS; FONT-SIZE: 10pt}.form {BACKGROUND: #000069; COLOR: #ff6f12}.sixa {BACKGROUND-COLOR: transparent; COLOR: #a9a9a9; FONT-SIZE: 26pt}.foua {BACKGROUND-COLOR: transparent; COLOR: #a9a9a9; FONT-SIZE: 14pt}.threa {BACKGROUND-COLOR: transparent; COLOR: #a9a9a9; FONT-SIZE: 13pt}/*BODY {BACKGROUND-COLOR: #ffffff; COLOR: #ffffff}BODY {FONT-FAMILY: Arial Unicode MS; scrollbar-face-color: #0066FF; scrollbar-shadow-color: white; scrollbar-highlight-color: black; scrollbar-3dlight-color: #0066FF; scrollbar-dark-shadow-color: black; scrollbar-track-color: #ADD8E6; scrollbar-arrow-color: white}*/</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=javascript><!--//Search Script//By: Don Santiago//Email: senor_santi@yahoo.com//If there are any problems...please let me know and I will fix it. //I haven't tried to max it out so I have now idea of how big the arrays can get.//All you need for the script is the form and the script.// Make sure the form matches the background!!!!function search() {document.mysform.searchreply.value = "";document.mysform.links.value = "";document.mysform.sorry.value = "";//Write a sorry line belowsorry = "Sorry there were no matches available. Try Agian";var search = document.mysform.mysearch.value;if (search == null || search =="") {   document.mysform.searchreply.value = "In order to complete this search you must insert a search request. Try Agian";   }      else {//When adding arrays make sure the number of arrays is equal to the number in the parenthesis (5) mean five arrays, 0 throught 5//List key terms//Leave no space infront or behind the wordskeys = ["thecounter","theguestbook","jars","javascripts","javaboutique"];    //This is where you place you descriptions.//You can add more than one result like the second one below, just remeber to space it out.//Definitionspsmch = new Array(5)psmch[0] = "Get your free Guestbook now!";psmch[1] = "Get the stats on your visitors from TheCounter.com. Free and premium accounts available!";psmch[2] = "The place for Java Ratings on the newest applications and applets!";psmch[3] = "Need a JavaScript? How about for free? Check out the first and last place to go for free scripts!";psmch[4] = "Java Applets, Java Tutorials, Java Reviews. Everything Java!";//Add the links here to match the key terms and definitionspslnk = new Array(5)pslnk[0] = "http://theguestbook.com ";pslnk[1] = "http://thecounter.com ";pslnk[2] = "http://jars.com ";pslnk[3] = "http://jsbank.topcities.com ";pslnk[4] = "http://javaboutique.internet.com ";//Dont edit below unless you know what you're doing!var search = document.mysform.mysearch.value;search = search.toLowerCase();for(i=0; i<keys.length; i++) {   if(keys[i] != search)   {   document.mysform.sorry.value = sorry;}}for(i=0; i<keys.length; i++) {   if(keys[i] == search)   {document.mysform.searchreply.value = psmch[i];document.mysform.links.value = pslnk[i];   document.mysform.sorry.value = "";   }}}}//Allows user to go to that page with easefunction move() {var going = document.mysform.links.valueif (going == "") {document.mysform.sorry.value = "Sorry. No Link Available.";}else {window.location = document.mysform.links.value;}}//Dont edit above unless you know what you're doing!//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<P align=left><SPAN class=foua>HOW 2</SPAN><BR><BR><TABLE border=0 cellPadding=0 cellSpacing=0 height=700 width=600>  <TBODY>  <TR vAlign=top>    <TD width=100>      <TABLE border=0 cellPadding=0 cellSpacing=0 height=576 width="100%">        <TBODY>        <TR bgColor=#c0c0c0 vAlign=top width="20%">          <TD bgColor=#99ccff height=31><SPAN class=threa>Subjects</SPAN></TD></TR>        <TR vAlign=top>          <TD bgColor=#c0c0c0 height=545>            <DIV class=sidebarl><SPAN class=two>Nothing</SPAN><BR><SPAN             class=two>Nothing</SPAN><BR><SPAN class=two>Nothing</SPAN><BR><SPAN             class=two>Nothing</SPAN><BR><SPAN class=two>Nothing</SPAN><BR><SPAN             class=two>Nothing</SPAN><BR></DIV></TD></TR></TBODY></TABLE></TD>    <TD width=475><!-- Cant be removed -->      <TABLE border=0 cellPadding=0 cellSpacing=0 height=650 width="100%">        <TBODY>        <TR bgColor=#c0c0c0 vAlign=top>          <TD>            <FORM name=mysform><!-- search box -->              <INPUT name=mysearch size="20"> <!-- Submit Button --><INPUT onclick="return search();" style="BACKGROUND-COLOR: #99ccff; BORDER-BOTTOM-COLOR: #99ccff; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #99ccff; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #99ccff; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #99ccff; BORDER-TOP-STYLE: solid; COLOR: #ffffff; FONT-FAMILY: Arial Unicode MS" type=button value=Submit> <!-- Reset Button --><INPUT style="BACKGROUND-COLOR: #99ccff; BORDER-BOTTOM-COLOR: #99ccff; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #99ccff; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #99ccff; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #99ccff; BORDER-TOP-STYLE: solid; COLOR: #ffffff; FONT-FAMILY: Arial Unicode MS" type=reset value="New Search">             <BR><!-- Link Box --><INPUT name=links size="20"> <!-- Goto --><INPUT onclick=move(); style="BACKGROUND-COLOR: #99ccff; BORDER-BOTTOM-COLOR: #99ccff; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #99ccff; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #99ccff; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #99ccff; BORDER-TOP-STYLE: solid; COLOR: #ffffff; FONT-FAMILY: Arial Unicode MS" type=button value=" GoTo!">             <P><INPUT name=sorry size=50             style="BACKGROUND-COLOR: #c0c0c0; BORDER-BOTTOM-COLOR: #c0c0c0; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #c0c0c0; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #c0c0c0; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #c0c0c0; BORDER-TOP-STYLE: solid; COLOR: #ffffff"> <!-- Description --></P>            <P><!-- Can be removed the text inside the text brakets--><TEXTAREA cols=50 name=searchreply rows=25 style="BACKGROUND-COLOR: #c0c0c0; BORDER-BOTTOM-COLOR: #c0c0c0; BORDER-BOTTOM-STYLE: solid; BORDER-LEFT-COLOR: #c0c0c0; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #c0c0c0; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #c0c0c0; BORDER-TOP-STYLE: solid; COLOR: #ffffff; scrollbar-face-color: #C0C0C0; scrollbar-shadow-color: #FFFFFF; scrollbar-highlight-color: #C0C0C0; scrollbar-3dlight-color: #C0C0C0; scrollbar-dark-shadow-color: #C0C0C0; scrollbar-track-color: #C0C0C0; scrollbar-arrow-color: white">Keyword are: thecounter theguestbook jars javascripts javaboutique</TEXTAREA> <!-- Cant be removed --></P></TD></FORM></TR></TBODY></TABLE>    <TD width=19></TD></TR></TBODY></TABLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->