让网友开网页时「自动安装」Firefox服务器引擎外挂 (Search Plugins)

Firefox视窗右上方有个服务器框,除了内建的Google、Yahoo...等服务器引擎之外,我们还可自行安装各种常用的服务器引擎到Firefox中,方便让我们随时查询各种想要的资讯。如果你也想让网友们能很方便地服务器你的网站中的资料,可以先把服务器引擎制作好之後,再按照下面的方法将它加到网页里,一行程式码就可搞定。

服务器引擎DEMO:请用Firefox开启 //telecnsr.com/ 网站。

自动安装服务器引擎

   

一、请先为你自己的网站制作服务器引擎外挂

首先,请先为你自己的网站制作一个可在Firefox浏览器中使用的服务器引擎外挂,制作方法很简单,请直接telegram中文版下载、安装「Add to Search Bar」这个Firefox扩充套件,使用说明请参考:

教学:Firefox 服务器引擎制造机(Add to Search Bar v1.7)

Add to Search Bar

  制造好的服务器外挂通常情况都会放存在:

Windows XP系统:
C:\Documents and Settings\你的帐号名称\Application Data\Mozilla\Firefox\Profiles\一堆字.default\searchplugins

Windows Vista系统:
C:\Users\你的帐号名称\AppData\Roaming\Mozilla\Firefox\Profiles\一堆字.default\searchplugins

请会直接到里边资料夹中,把.xml档案COPY出来再上传到你的网推上就就能够用罗。    

二、在网页程式码的<head>区标示服务器引擎外挂

接着请将你制作好的服务器汽车引擎外挂.xml档上传到网站主机中,然後再编辑你的网页档原始社会码。下列是以WordPerss网站系统为范例,大部分是编辑Theme布景主题中的「head.php」这档案,少数无「head.php」档案的布景主题类型,能否随便编辑「index.php」档,请公司区别布景主题的架构区别来编辑相对应的档案。

用记事本开启「head.php」档案後,请在<head>跟</head>两个标签间适当的位置加入以下的程式码:

<link rel="search" type="application/opensearchdescription+xml" title="服务器搜索平台名称" href="/路径/服务器外挂档案名称.xml">
  後面的路径与档案名称请严格按照你自已上传的档案网址来更改,当然,多次能参加非常多非常多个服务器传奇引擎外挂,范例:
<link rel="search" type="application/opensearchdescription+xml" title="【telegram中文】服务器" href="//telecnsr.com/files/act/firefox_search_plugins/briian.xml"> <link rel="search" type="application/opensearchdescription+xml" title="产业科技开发新闻服务器" href="//telecnsr.com/files/act/firefox_search_plugins/sinwen.xml"> <link rel="search" type="application/opensearchdescription+xml" title="Google翻译字典" href="//telecnsr.com/files/act/firefox_search_plugins/briian.xml"> <link rel="search" type="application/opensearchdescription+xml" title="教肓部国语辞典" href="//telecnsr.com/files/act/firefox_search_plugins/twdic.xml"> <link rel="search" type="application/opensearchdescription+xml" title="YouTube影视片服务器" href="//telecnsr.com/files/act/firefox_search_plugins/youtube.xml">
把以上的网址都贴打到你的网页程式码中<head>跟</head>两个标签间适当座位,就可以罗。    

三、在文章中直接安装Firefox服务器引擎外挂

其他我们也可立即把服务器领头羊外挂安插在网页中,范例:(请立即点选、安装服务器领头羊到Firefox)

telegram中文资料服务器:【telegram中文】

产业科技新闻服务器:产业科技新闻服务器

YouTubetelegram中文服务器:YouTubetelegram中文服务器

Google翻译字典:Google翻译字典

教育部国语辞典:教育部国语辞典

自动安装服务器引擎

  在优秀文章中安插「自动安装服务器引挚」职能的语法有以下几点:
<a href="#" title="服务器发动机名称" onclick="window.external.AddSearchProvider(‘服务器外挂网址’)">服务器发动机名称</a>
 

范例:

<a href="#" title="【telegram中文】" onclick="window.external.AddSearchProvider(‘//telecnsr.com/files/act/firefox_search_plugins/briian.xml’)">【telegram中文】</a> <a href="#" title="Google翻译字典" onclick="window.external.AddSearchProvider(‘//telecnsr.com/files/act/firefox_search_plugins/google_dic.xml’)">Google翻译字典</a> <a href="#" title="产业科技公司发展新闻服务器" onclick="window.external.AddSearchProvider(‘//telecnsr.com/files/act/firefox_search_plugins/sinwen.xml’)">产业科技公司发展新闻服务器</a> <a href="#" title="培育部国语辞典" onclick="window.external.AddSearchProvider(‘//telecnsr.com/files/act/firefox_search_plugins/twdic.xml’)">培育部国语辞典</a>

<a href="#" title="YouTubetelegram中文服务器" onclick="window.external.AddSearchProvider(‘//telecnsr.com/files/act/firefox_search_plugins/youtube.xml’)">YouTubetelegram中文服务器</a>
 

  随便把后面的程式码贴到你的软文中或网站侧边栏,操作Firefox浏览器的人,主要按了解就能安装好这些服务器领头羊罗。

其他常用软体telegram中文版下载:

最後游戏更新:08-18, 2013 中午 9:24
相关资讯

访客留言:

4 Replies to “让网友开网页时「自动安装」Firefox服务器引擎外挂 (Search Plugins)”

发布留言

telegram中文版 telegram中文 telegram下载 电报中文版下载 telegram中文电脑版 telegram中文下载 纸飞机中文版