Difference between revisions of "Searchplugin"

From No Subject - Encyclopedia of Psychoanalysis
Jump to: navigation, search
Line 1: Line 1:
<html>
+
 
<script type="text/javascript">
 
<!--
 
function errorMsg()
 
{
 
  alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
 
}
 
function addEngine(name,ext,cat,type)
 
{
 
  if ((typeof window.sidebar == "object") && (typeof
 
  window.sidebar.addSearchEngine == "function"))
 
  {
 
    //cat="Web";
 
    //cat=prompt('In what category should this engine be installed?','Web')
 
    window.sidebar.addSearchEngine(
 
      "http://localhost.localdomain/plugins directory/"+name+".src",
 
      "http://localhost.localdomain/plugins directory/"+name+"."+ext,
 
      name,
 
      cat );
 
  }
 
  else
 
  {
 
    errorMsg();
 
  }
 
}
 
//-->
 
</script>
 
  
 
Link your plugins to the above script with this code, by replacing the file name, image extension and category name with that of the plugin file:
 
Link your plugins to the above script with this code, by replacing the file name, image extension and category name with that of the plugin file:

Revision as of 21:34, 2 November 2006


Link your plugins to the above script with this code, by replacing the file name, image extension and category name with that of the plugin file:

<a href="javascript:addEngine('File name','image extension','Category name',0)">Name of Plugin</a> </html>