Here's an update to Steve Poiner's recent gy.xml search which adds the switches /web, /images, /videos, /news, /shop, /dir. I was using the gy shortcut myself for the twingine search and so took the liberty of renaming it to yoo! Feel free to rename it back to gy if that's more appropriate.

Cheers, Tom.


Steve Poirier wrote:
Here is another combined search page, http://www.gahooyoogle.com, and a DQSD search plugin to go with it. Steve
<search function="yoo">
  <name>Search Google and Yahoo</name>
  <category>Search the Web</category>
  <contributor>Steve Poiner, Tom Corcoran</contributor>
  <link>http://www.gahooyoogle.com/</link>
  <email></email>
  <description>Search Google &amp; Yahoo at the same time
  <div class="helpboxDescLabels">Switches:</div>
  <table class="helpboxDescTable">
    <tr><td>/web</td></tr>
    <tr><td>/images</td></tr>
    <tr><td>/videos</td></tr>
    <tr><td>/news</td></tr>
    <tr><td>/shop</td></tr>
    <tr><td>/dir</td></tr>
  </table>
  <div class="helpboxDescLabels">Example:</div> 
  <table class="helpboxDescTable">
    <tr>
      <td>yoo munster rugby /news</td>
      <td>yoo "broken social scene"</td>
    </tr>
  </table>
  </description>
  <form name="yoof"
        method="get"
        action="http://www.gahooyoogle.com/search.php";>
    <input type="hidden" name="st" value="Web" />
    <input type="hidden" name="q" value="" />
  </form>
  <script><![CDATA[
    function yoo(q)
    {
      if( nullArgs("yoo", q) )
        return false;
      else
      {
        var args = parseArgs(q, "web,images,videos,news,shop,dir");
        if( args.switches.length > 0 )
          for( var j=0; j<args.switches.length; j++ )
             switch( args.switches[j].name )
            {
              case "web": document.yoof.st.value = "Web"; break;
              case "images": document.yoof.st.value = "Images"; break;
              case "videos": document.yoof.st.value = "Videos"; break;
              case "news": document.yoof.st.value = "News"; break;
              case "shop": document.yoof.st.value = "Shopping"; break;
              case "dir": document.yoof.st.value = "Dir"; break;

              default: document.yoof.st.value = "Web";
           }
      }
      document.yoof.q.value = args.q;      
      submitForm(yoof);
    }
  ]]></script>
</search>

Reply via email to