Paul Menefee

  Home  |   Contact  |   Syndication    |   Login
  23 Posts | 1 Stories | 2 Comments | 16 Trackbacks

News

Archives

Post Categories

Blogs to follow

Links

Resources

Thanks to David Cumps I added a google search to my blog.  It did take a little tweeking though :)  Be sure to change “pmenefee“ to your blog directory.

<SCRIPT type=text/javascript>
 
function blogSearch(event, oInput) { 
    var keyCode = (event) ? event.keyCode : keyStroke.which;
    if (keyCode == 13) { 
        top.location = 'http://www.google.com/search?q=' + oInput.value + '+inurl%3Apmenefee+%3Ageekswithblogs.net'; 
        return false; 
    } 
    return true;
} 
 
function blogSearch2(oInputId) { <BR>var oInput = document.getElementById(oInputId); 
    top.location = 'http://www.google.com/search?q=' + oInput.value + '+inurl%3Apmenefee+%3Ageekswithblogs.net'; 
    return false; 
}
</SCRIPT> 

UPDATE: Given the legal ramifications of placing this search script on your page; I'm pulling it off of mine. 

posted on Wednesday, January 12, 2005 1:07 AM

Feedback

# re: Add a google search to your blog 1/12/2005 6:26 AM David Cumps
Just to inform the people who have implemented it already: The post is edited with some extra tweaks such as escape and 'site:'

I'm happy to see how many people find it usefull and easy to implement :)

# re: Add a google search to your blog 1/20/2005 4:35 AM David Cumps
Other info: I added an important notice to the post about Google terms and rumours about sites being removed from the index, please check it out and decide for yourself :)

# re: Add a google search to your blog 2/22/2005 10:02 PM StarSter
Thanks For You Comments

# re: Add a google search to your blog 4/26/2005 3:09 AM Azizullag
Thanks from google

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 5 and 3 and type the answer here: