home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / lf.xml < prev    next >
Text File  |  2002-11-14  |  2KB  |  64 lines

  1. <search function="lf">
  2.   <name>lyricsfind.com</name>
  3.   <description>Search for song lyrics.  Default search is by title.<br/><b>NOTE:</b> The search engine remembers your last used search type, so the switches may not always be necessary.
  4.     <div class="helpboxDescLabels">Switches:</div>
  5.     <table class="helpboxDescTable">
  6.       <tr><td>/title</td><td> - </td><td>Search by song title (Default)</td></tr>
  7.       <tr><td>/artist</td><td> - </td><td>Search by artist name</td></tr>
  8.     </table>
  9.     <div class="helpboxDescLabels">Examples:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>lf fight the power /title</td></tr>
  12.       <tr><td>lf public enemy /artist</td></tr>
  13.     </table>
  14.   </description>
  15.   <category>Entertainment</category>
  16.   <link>http://www.lyricsfind.com/</link>
  17.   <contributor>Steven J. Heil</contributor>
  18.   <email>sjheil_at_hotmail_dot_com</email>
  19.   <form name="lff"
  20.         action="http://www.lyricsfind.com/list.php"
  21.         method="get">
  22.     <input type="hidden" name="type" value="title"/>
  23.     <input type="hidden" name="q" value=""/>
  24.   </form>
  25.   <script><![CDATA[
  26.     function lf(q)
  27.     {
  28.       if( nullArgs("lf", q) )
  29.         return false;
  30.  
  31.       var args = parseArgs(q, "artist, title");
  32.  
  33.       if( q == "" )
  34.         openSearchWindow("http://www.lyricsfind.com/");
  35.  
  36.       else if( args.switches.length == 1 )
  37.       {
  38.         switch( args.switches[0].name )
  39.         {
  40.           case "artist":
  41.             document.lff.type.value = "artist"; break;
  42.           case "title":
  43.           default:
  44.             document.lff.type.value = "title"; break;
  45.         }
  46.         document.lff.q.value = args.q;
  47.         submitForm(lff);
  48.       }
  49.       else if( args.switches.length > 1 )
  50.         nullArgs("lf","?");
  51.       else
  52.       {
  53.         document.lff.q.value = q;
  54.         submitForm(lff);
  55.       }
  56.     }
  57.   ]]></script>
  58.   <copyright>
  59.     Copyright (c) 2002 David Bau
  60.     Distributed under the terms of the
  61.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  62.   </copyright>
  63. </search>
  64.