Changes

Jump to: navigation, search

Searchplugin

872 bytes added, 21:31, 2 November 2006
no edit summary
<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:

<a href="javascript:addEngine('File name','image extension','Category name',0)">Name of Plugin</a>
Root Admin, Bots, Bureaucrats, flow-bot, oversight, Administrators, Widget editors
24,656
edits

Navigation menu