Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 02-09-2007, 08:34 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
How to create a Firefox 2.x site search option for your site.

This refers to that search drop down box at the top right of Firefox 2.0. The 1.x version is different, so this will only work if you have 2.x.

This will provide a google site search within the Firefox browser.

As you can see, the image is base64 encoded. You can use this site to encode your image. I used a transparent gif.

Code:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"> <ShortName>Code Newbie</ShortName> <Description>Code Newbie Site Search</Description> <InputEncoding>UTF-8</InputEncoding> <Image width="16" height="16">data:image/x-icon;base64,R0lGODlhEAAQANU7AMxmM//MzP+ZM8yZAMyZM///mevr6+jo6M3Nzfr69AAzM7i4uGZmmTNmM3p6esLCwrGxseDg4M7O/9ra2v9mM9PTpjprOpiYmNjY2HynfO3t7QAAM+fn58xmAKurq///2tnZ2crKyvr6+uzs7NGjo8xmZrPZs87Ozqurgf//4G1tbWYzM2ZmM5lmM/+ZAMzMmZlmZv/Mmf9mAP//zMyZmZmZZpmZmTMzM2ZmZgAAAP///////wAAAAAAAAAAAAAAACH5BAEAADsALAAAAAAQABAAAAaywJ1QqDtEdKDEcEk82XQ4nESnY+5EFZwNl7vhbqpFlehg3HJoNI463o1W6Tj6SfSoabQa65yzTYQpGzk1MzMFATMvMF5VOjY5LAE1MDAvMzE0CiyNjzAFNjU1MaM4K2s7OiQ5OC8AHS2WNgQyABhCKF8tLjICNTSzLi4QqBmLLTIyAysNujIUHEIaNTcwAgMlMTM2AAAmQ1Q4oawBMTU2H22oCDd4K3shVkQGFxY3Nw9WQQA7</Image> <Url type="text/html" method="GET" template="http://www.google.com/search"> <Param name="q" value="{searchTerms}"/> <Param name="sitesearch" value="codenewbie.com"/> </Url> <SearchForm>http://google.com/</SearchForm> </SearchPlugin>
Name that file whatever.xml and drop it in your Mozilla Firefox/searchplugins/ directory.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:58 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle