home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / multisearchbox.xml < prev    next >
Encoding:
Text File  |  2005-02-16  |  3.8 KB  |  123 lines

  1.  
  2. <ccresource>
  3.   <cctitle>
  4. Multiple Search Engine Portal
  5.   </cctitle>
  6.   <cccategory>
  7. Browser
  8.   </cccategory>
  9.   <ccDescription>
  10.     This code will allow you to put a search box on your
  11.     page that will search your choice of several search engines.
  12.   </ccdescription>
  13.   <ccinstructions>
  14.   The code goes anywhere within the BODY tags.
  15.   </ccinstructions>
  16.   <ccheadcontent>
  17.  
  18.   </ccheadcontent>
  19.   <ccbodycontent>
  20. <script language="JavaScript" type="text/javascript">
  21.  
  22. //<![CDATA[
  23.  
  24. <!--
  25.  
  26. function startSearch(){searchString = document.searchForm.searchText.value;if(searchString != ""){searchEngine = document.searchForm.whichEngine.selectedIndex + 1;finalSearchString = "";
  27.  
  28. if(searchEngine == 1){finalSearchString = "http://yourUrlgoeshere.com";}
  29.  
  30. if(searchEngine == 2){finalSearchString = "http://www.aesop.com/cgi-bin/a-search.cgi?term=" + searchString;}
  31.  
  32. if(searchEngine == 3){finalSearchString = "http://www.altavista.com/web/results?itag=wrx&q=" + searchString;}
  33.  
  34. if(searchEngine == 4){finalSearchString = "http://atopqualitysite.com/cgi-bin/search/search.pl?Terms=" + searchString;}
  35.  
  36. if(searchEngine == 5){finalSearchString = "http://www.galaxy.com/cgi-bin/query?keys=" + searchString;}
  37.  
  38. if(searchEngine == 6){finalSearchString = "http://www.google.com/search?q=" + searchString + "&btnG=Google+Search";}
  39.  
  40. if(searchEngine == 7){finalSearchString = "http://www.icyspicy.com/cgi-bin/search/search.cgi?keywords=" + searchString;}
  41.  
  42. if(searchEngine == 8){finalSearchString = "http://mia-search.mia.lycos.com/default.asp?lpv=1&loc=lycoshp&tab=web&query=" + searchString + "&backlink=639";}
  43.  
  44. if(searchEngine == 9){finalSearchString = "http://www.mamma.com/Mamma?qtype=0&query=" + searchString + "&Submit=Go+Mamma";}
  45.  
  46. if(searchEngine == 10){finalSearchString = "http://search.yahoo.com/bin/search?p=" + searchString;}
  47.  
  48. if(searchEngine == 11){finalSearchString = "http://search.gallery.yahoo.com/search/corbis?p=" + searchString + "&r=all";}
  49.  
  50. if(searchEngine == 12){finalSearchString = "http://www.download.com/3120-20_4-0.html?qt=" + searchString + "&tg=dl-20&search.x=0&search.y=0&search=+Go%21+";}
  51.  
  52. if(searchEngine == 13){finalSearchString = "http://downloads-zdnet.com.com/3120-20-0.html?qt=" + searchString + "&tg=dl-2001";}
  53.  
  54. if(searchEngine == 14){finalSearchString = "http://dk.altavista.com/q?pg=q&q=" + searchString + "&kl=XX&what=dk&search.x=26&search.y=11";}
  55.  
  56. if(searchEngine == 15){finalSearchString = "http://dk.search.yahoo.com/search?ei=UTF-8&fr=404&p=" + searchString;}
  57.  
  58. if(searchEngine == 16){finalSearchString = "http://de.altavista.com/q?pg=q&q=" + searchString + "&kl=XX&what=de&search.x=26&search.y=11";}
  59.  
  60. if(searchEngine == 17){finalSearchString = "http://de.search.yahoo.com/search/de?p=" + searchString;}location.href = finalSearchString;}}// -->
  61.  
  62. //]]>
  63.  
  64. </script>
  65.  
  66.  
  67.  
  68. <form name="searchForm"><b>Find</b> <input name="searchText"
  69.  
  70. type="text" /> <b>with this search engine:</b> <select name="whichEngine"
  71.  
  72. onchange="startSearch()">
  73.  
  74. <option selected="selected">Select / Reset</option>
  75.  
  76. <option>Aesop</option>
  77.  
  78. <option>Altavista</option>
  79.  
  80. <option>Awards & Topsites</option>
  81.  
  82. <option>Galaxy</option>
  83.  
  84. <option>Google</option>
  85.  
  86. <option>IcySpicy</option>
  87.  
  88. <option>Lycos</option>
  89.  
  90. <option>Mamma</option>
  91.  
  92. <option>Yahoo!</option>
  93.  
  94. <option>Yahoo (PixSearch)</option>
  95.  
  96. <option>Software - CNet Downloads</option>
  97.  
  98. <option>Software - Hotfiles ZDNet</option>
  99.  
  100. <option>Denmark - AltaVista (DK)</option>
  101.  
  102. <option>Denmark - Yahoo (DK)</option>
  103.  
  104. <option>Deutschland - Altavista (DE)</option>
  105.  
  106. <option>Deutschland - Yahoo (DE)</option>
  107.  
  108. </select></form>
  109.  
  110. </select></form>
  111.  
  112.   </ccbodycontent>
  113.   <ccelementcontent>
  114.   
  115.    <ccelementname></ccelementname>
  116.    <ccelementaction></ccelementaction>
  117.    
  118.   </ccelementcontent>
  119.   <ccextradata>
  120.  
  121.   </ccextradata>
  122. </ccresource>
  123.