|
|
How can I add a Google search box to my Web site?Dave, I keep visiting sites and seeing these cool search boxes that let you either search their entire site or search the entire Google database, all without leaving that page! I want to have something like this and would appreciate your helping me figure out the code needed.
This is a question that's going to result in some HTML listings. You know that, so there's no reason to panic! First off, the good news. Google itself actually has a nice page offering you HTML code you can just cut and paste onto your own Web pages to produce the search box you seek, and some variants beside. Just check out Google Free. Instead of relying on the bright sparks at Google, though, let's go through the steps of building our own search box instead, so you'll be able to see how it works. Also, not to pick on Google because I think the world of those folk, but their HTML samples could be cleaned up a bit, usually, so I've also recast it as proper XHTML rather than somewhat sloppy HTML. Just don't tell Larry and Sergey, okay? The basic technique involved here is to be able to manipulate one of the variables handed to the Google search engine, a variable called sitesearch. Set it to a null value and you're searching the entire World Wide Web, but set it to a specific domain and it's constrained exactly as if you had typed in the Google special notation site:domain. In addition to that, you need an input field and a submit button. Put them all together and here's the minimalist Google search form that lets the user alternate between just your site (well, in this case just my site) or the entire Web: <form method="get" action="http://www.google.com/search"> <input type="text" name="q" size="31" maxlength="255" value="" /> <input type="submit" value="Google Search" /> <input type="radio" name="sitesearch" value="" /> The Web <input type="radio" name="sitesearch" value="askdavetaylor.com" checked /> Ask Dave Taylor<br /> </form>There are some additional tweaks we can apply to make it a bit more fancy, including changing the radio buttons to a single check box, and aligning things a bit more nicely using a table and some simple CSS: <form method="get" action="http://www.google.com/search"> <div style="border:1px solid black;padding:4px;width:20em;"> <table border="0" cellpadding="0"> <tr><td> <input type="text" name="q" size="25" maxlength="255" value="" /> <input type="submit" value="Google Search" /></td></tr> <tr><td align="center" style="font-size:75%"> <input type="checkbox" name="sitesearch" value="askdavetaylor.com" checked /> only search Ask Dave Taylor<br /> </td></tr></table> </div> </form>Here's how that renders when included on an HTML page: If you'd like to use this on your own site, simply change the occurrences of askdavetaylor.com as appropriate. Not too hard at all!
Related HTML, JavaScript and Web Site Programming articles:
✔ How to Create Predefined Google Image Search Links?
Thanks for the Amazon URL [see Creating Amazon Search Links]. That worked beautifully. In fact, I sent you $5.00 for coffee in thanks....
✔ Can I embed a Facebook search box on my blog site?I've seen your articles about how to add a Twitter or Google search box on a Web page, but I have a tougher...
✔ Can I use CSS for drop shadows on my blog?I want to give my site a bit of a facelift and add some neat graphical elements. One of which is drop shadows....
✔ How can I embed interactive photo panoramas on my site/blog?I read through your blog entry about how to take panoramic photos with iOS 6 and an iPhone 5 and got enthused. I've...
✔ How can I create a Twitter search URL shortcut?I'd like to add a few Twitter search links to my Web site. Is that possible, or does Twitter prohibit this sort of...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help
right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
Categorized:
HTML, JavaScript and Web Site Programming
(Article 3802,
Written by Dave Taylor)
Tagged: Previous: Selling jewelry on eBay, does it need to be appraised? Next: Should students use Google for research? Reader Comments To Date: 817Dave Taylor said, on December 11, 2004 4:23 AM:
If it's working properly, the search box should send you to the Google site, but with the word or words you typed in prefilled in as the search terms. Is this not what you're seeing? If so, what are you seeing? Also, what happens when you type in a term on the search box at the end of my article? Does that work for you? John Kiester said, on December 11, 2004 4:51 PM:
Is there a way to have the results pop-up in a new window? Dave Taylor said, on December 11, 2004 5:07 PM:
John, you'll laugh when you find out how easy that is! The line <form method="get" action="http://www.google.com/search"> just needs to have target="new" added and it'll redirect the result of that form to a new window called "new". If you always want to guarantee that a new window is launched rather than possibly reusing the 'new' window, use "_blank" as the target instead: <form method="get" action="http://www.google.com/search" target="_blank"> Hope that helps! PJ said, on December 11, 2004 5:10 PM:
I looked at my coding several times last night and missed a typo. Things are working just fine now. Thanks for your help. David said, on December 13, 2004 1:39 AM:
OK...I must be missing something here. How does this code search MY site? For example, if I have the word "pumpkin" on a page in my site will this search return a URL to that page? Dave Taylor said, on December 13, 2004 1:51 AM:
Thanks for your note, David. Checking on "search my site" in the form causes the search to automatically include "site:yourdomain" so that it only searches pages in the Google database that have your domain as the base of the URL. In essence, it's a search engine for your site alone. Matches then go back to your site. Hope that clears things up! David said, on December 13, 2004 10:31 PM:
Dave, now I understand what it is supposed to do. I thought it was going to search in MY domain...within my site...for the text entered...my bad. Thanks for setting me straight. David. adam said, on January 20, 2005 8:49 AM:
I would like a search box to find things within my site only. my site is not ready yet to submit to any of the search engines as i dont want to get black listed for broken links etc. How can I make and test a search box for my site without submitting to Google etc. Cheers Dave Taylor said, on January 21, 2005 2:41 PM:
You can't use the Google search tool to find content on your site if you don't want Google to see it, Adam, so you'll need to install a search engine of your own on your server. If that's a possibility, then I'd talk with your Web hosting provider because they might already have something installed. Good luck! Donna said, on June 3, 2005 4:14 AM:
Thank you for this tip! How kind of you to do all this work so I can have it so easy. THANK YOU THANK YOU THANK YOU! Piyush said, on June 26, 2005 4:26 AM:
I'm making my site and have kept the google search in it. It's too easy to put google search and in few seconds it worked fine. Thanks alot for the code that is mentioned here. I've added my site to google and would like to know more about how I can get my site on the index page of google. Regards, Vikesh Jain said, on July 29, 2005 12:15 PM:
Dave,I have added Google to my webpage using the "Google free" code. Can you please tell me how can i by default place the cursor in google search box? Tracy said, on August 5, 2005 8:51 PM:
It is my understanding that you can get paid by Google when people use your site's Google search box. How does that work? Do the ads have to be able to pop up on your site or can the inquiries be sent to the Google website, leaving our website free of clutter? How do you set it up so that we get paid when people use our search box? I have tried to find the answer in Google's help pages but I just can't seem to get a solid answer anywhere. We are also trying to customize the appearance of our Google search box so that it fits within a certain space designated on our website. Any recommendations? I am at my wits end and desperate for help! Nadine said, on August 18, 2005 11:07 PM:
I'm trying to add the Google search to my blog, but it doesn't seem to work. Perhaps I'm inserting it in the wrong location. Perhaps I need different code because it's a blog, not a web site. Any help would be appreciated. The blog's purpose is to facilitate communication among former high school classmates, many of whom do not seem to be very Internet savvy. I'm hoping a "search this site" function will help them to locate names more easily manny said, on August 19, 2005 8:45 AM:
how can i make a search "form" such as one that a car dealer would use to have people search his site for a car. one that would use multiple boxes such as "make", "model", "color" etc. and use all the boxes to come up with results Jillian said, on August 27, 2005 5:58 AM:
Hi Dave, I entered the code like said and changed the domain, but the search won't work on my site. (as in, won't return a search relevant to my site), but will do the google search just fine (when i uncheck the box). any thoughts on how i can fix this? thanks! Dave Taylor said, on August 27, 2005 6:37 AM:
Two issues, Jillian. First off, you need to not send the "http://" part in your 'sitesearch' field, but more importantly, a search of Google shows that it doesn't have a single page of your site in its search engine, so there's no way for it to ever succeed. Try searching for 'site:www.askdavetaylor.com', for example, then search for 'site;vespa-rosso.blogspot.com' and you'll see what I mean. Sorry! Jillian said, on August 27, 2005 4:59 PM:
Dave, I'll fix the first part (the http), but I also noticed the google search thing. How can I change this? I listed my site with google about a week or two ago. Thanks! Dave Taylor said, on August 28, 2005 4:11 AM:
You might just need to have some patience, Jillian. Google has a "sandbox" where brand new sites and domains are parked for a few weeks up to a few months before they're added to the full Google database. That's so spam sites don't just pop up and corrupt / pollute the Google database, but it's darn frustrating for us legitimate content providers. Sorry! Deborah Skipper said, on September 3, 2005 9:38 PM:
Hi Dave, I've read all your comments to other posts and I'm using CityMax for my host and they don't offer a search box for my site. I'd love to have one that just searches my site and no advertisements.. google seems to have a problem with my site since it's through a host and not mine... :(Can you help me with how to add a search box to my site that only returns items from my site with pictures? Like any one of the pages listed below would be fantastic. Thanks and praying really hard for help :) Deborah chris said, on October 11, 2005 8:41 PM:
Hi Dave, I ve got the google search on one of my sites and it works great for searhced throughout that site. any ideas? Balaji said, on October 12, 2005 11:57 AM:
i have a set of pages to be listed and another set which should not be listed.. how do i do this? Dave Taylor said, on October 12, 2005 6:36 PM:
Balaji, you'll want to learn more about the robots.txt file, and specifically the equivalent meta tag you can add to specific pages that tell search engines not to include those pages in indices. See: http://www.askdavetaylor.com/about_robots.html DJ Ortiz said, on October 16, 2005 5:57 PM:
Hi Dave, I was reading your article about the Google Search Box. I have a website running in PHP-Nuke. The code does not seem to work. I tried adding it to a block, and all that appears is just the *.gif from Google. Can you help? Youx said, on November 2, 2005 2:01 AM:
Ok I see that you have ads by google on the top..well I signed up for google ad sense..and when I copied and pasted the html code to a site..the ad on there was for another site. Isn't it supposed to show my site ad? Could you help me out on how to advertize my site? Dave Taylor said, on November 2, 2005 4:05 AM:
Youx, I don't really understand what your expectations of AdSense are: you don't want ads for your own site on AdSense, because then you'd be paying for click-thrus that are from people already at your site. Make sense? Vidya said, on November 20, 2005 10:51 PM:
I got a search box coding from your site. Thanks a lot for it. Thanks a lot. Danny said, on November 29, 2005 6:54 PM:
I was wondering if there is any way to add a 'Local' search box to my web site. I would like to have a link to search local restaurants, stores, etc... Is there any weay to do this? Thanks! cw said, on December 5, 2005 10:19 PM:
I was wondering if you can stop the google search from looking in certail folders/directories? Thanks for all the help? cw said, on December 6, 2005 2:32 PM:
Thank you for all you do for us. Dave Taylor said, on December 7, 2005 7:28 AM:
Yes, check out the robots.txt information on the Google site: http://www.google.com/webmasters/bot.html I think that'll show you how to exclude certain directories. Sajja Rjaes said, on December 26, 2005 11:36 PM:
can i include in my site to search web sites from my site or i need to pay any thing? it is opening search result in the same web brouser cant we open in the new web brouser? Dave Taylor said, on December 27, 2005 11:09 AM:
Sajja, you're welcome to use this code for free - thanks for asking - and if you want to have it open in a new browser, add target="_blank" to the "form" tag. Peder said, on January 7, 2006 4:33 PM:
I put a google free site search on my webpage and there is another one below that with search the web and my website. I look in the HTML code but there isn't any for the bottom one. I only copied the HTML for the top one. How do I remove the bottom one? Dave Taylor said, on January 8, 2006 12:02 PM:
Peder, assuming you haven't copied and pasted it twice, I can't imagine how the code I present here could produce two search boxes for you. Can you email me your page URL (use the "Ask" button near the top) and I'll have a quick peek? John said, on January 19, 2006 10:37 AM:
How do I add in the option of searching either the Web or only pages from the UK Dave Taylor said, on January 19, 2006 10:44 AM:
John, just tweak the code I show to have the option of adding site:uk as a way to constrain your search results. John said, on January 19, 2006 1:03 PM:
thanks for the quick reply. Not knowing how to do HMTL code you couldnt give me a clue how to restrict the search. John Ian said, on January 20, 2006 3:29 PM:
Dear Dave, george said, on January 24, 2006 3:51 PM:
is there any way to have the results of the search display in my own page rather than googles? if not, do you know of a search engine that can be bought that has functions to prioritize search results? let me add my thanks to the bunch. thanks. george Trudes said, on February 8, 2006 12:36 PM:
A couple of questions: And is there any way of tracking what people are searching for, when they use the search box on your site? Any ideas of how you can do this? Dave Taylor said, on February 8, 2006 2:45 PM:
George, Trudes, no, you can't do that without some sneaky hacking behind the scenes that Google won't look upon happily. In terms of what they're searching for, yes, you could theoretically create a search box that feeds the search query to an intermediate script that logs their search pattern then bounces them directly to Google. Hmmm.... :-) Trudes said, on February 9, 2006 5:26 PM:
Ok, now you've lost me. How would I set up an intermediate script? I'm still learning! mohamed said, on February 11, 2006 5:01 AM:
how can i add vote button to my website. Anjanette said, on February 17, 2006 5:34 PM:
When you use google as a search engine on your own site, I think you still need to display the Google graphic. (See Section 2.3 Attribution at http://www.google.com/services/terms_free.html ). Please correct me if I'm wrong. Chris said, on March 2, 2006 8:23 AM:
I've been looking for some proper valid code for these pesky search boxes all day. At last I've found it! Thanks Dave! And (if it isn't too late) Happy New Year :) James said, on March 12, 2006 9:16 PM:
Hello, recently I decided to add a search feature to a site I'm constructing, http://skee.zaiph.net Thanks in advance! Also, if this helps any, the link to the Google searchbar is at ~James Dave Taylor said, on March 12, 2006 10:18 PM:
James, the reason that Google isn't finding your search results is because your site is just too new. Your best bet for getting into the Google database is simply to have sites point to you and make sure that each of your pages points to all your other pages. Then just have some patience! Deepa said, on March 21, 2006 12:21 PM:
Hello Dave, Deepa said, on March 23, 2006 5:05 AM:
Dear Dave, Steve said, on March 24, 2006 6:27 PM:
Excellent information! I'm using the Google search (not for my site, just to do full web searches from my site). How can I get the cursor to default to the Google input box? I'm glad to send you a link to my site, but didn't want to post it as it's under construction, and currently lacking in some areas of security. Thanks for any help or suggestions! -Steve Cecilia said, on March 25, 2006 9:21 AM:
I would like to have the Google search box search several different sites (call them "a" "b" & "c") all at the same. So far I can only get it to either search the whole web or just one site. I can do this with Yahoo but can't figure out how to do it with the Google code. any ideas? Dave Taylor said, on March 27, 2006 8:54 AM:
Steve, that's a basic JavaScript trick: make sure that the input field has an explicit name (which it should anyway, let's call it "fieldname" for this explanation) and that the form itself has a name (add a name="formname" attribute within the FORM tag itself), then in the BODY tag add the following attribute: onLoad="'document.formname.fieldname.focus();" that should be all you need to do! javier velasquez said, on April 1, 2006 8:51 PM:
Hi, How would be the same search box using froogle? Dave Taylor said, on April 4, 2006 9:42 AM:
javier, please see: http://www.askdavetaylor.com/how_can_i_add_a_froogle_search_box_to_my_site.html Castor said, on April 15, 2006 4:41 PM:
Your code and this page are not XHTML valid. I believe the checked value is the problem. Rob said, on April 18, 2006 3:00 PM:
First, many thanks for the great information! Can you please explain how to use the site: variable to search several different sites at the same time? I would like to have a search box on my intranet that searches a handful of sites, but I don’t want to offer each site as a choice, I just want a box and the Google search button, and have it search all of the sites. Thanks in advance for your help. Mae said, on May 4, 2006 6:38 PM:
Dave, how can you change the attributes of the Submit button (font, color, color of the button, etc.)? When I get the answer, I promise to buy you that chai. Dave Taylor said, on May 5, 2006 11:48 AM:
Mae, good incentive! Here's what I wrote up: http://www.askdavetaylor.com/how_do_i_change_the_appearance_of_a_submit_button.html :-) Fashion Victim said, on May 7, 2006 5:52 AM:
Thanks Dave! You're the best. It's hard for my readers to search my old blog postings but you've just made it easy and nice to look at! Mukul said, on May 14, 2006 4:24 AM:
I would like to have the google search and google adsence to my website can you guide me how to do it. If i copy-paste the the code you mention above where will the box be placed on my webpage , will it not change all the existing setting. Dave Taylor said, on May 15, 2006 10:08 PM:
To get started with AdSense, Mukul, please check out the following quite popular reference page: http://www.askdavetaylor.com/how_do_i_get_started_making_money_with_google_adsense.html Hope that helps you out! Jeff said, on May 20, 2006 8:46 AM:
Using the "google search" seems reltively easy as you explained! It seems the only search I get is from my index (home) page? What is the proper code to search all pages? I'm the novice here when it comes to html and my site is as "green" as can get for expertise! Thanks so much and I do enjoy all the reading! You're very knowledgable and appreciated! Jeff sangram said, on May 22, 2006 8:32 AM:
please give some idea to develop a searc engine. Vitali said, on June 14, 2006 8:16 AM:
Thanks a lot for the code, but I couldn't get it to search an internal database on an internal network (my code for database search was as value="K:\InternalDatabase\" (drive and file names changed for security reasons, yet the format is exactly how I have it)). Do you know if I can make the database searchable with Google Search? Miriam said, on June 18, 2006 6:39 PM:
I would love a search box for my site however, I don't like the way it is boxed with a black line. Dave Taylor said, on June 19, 2006 9:51 AM:
Miriam, that's easy. Just take out the border:1px solid black; from the code snippet (it's in the "div" tag) making sure not to remove the quote just before it, and you'll have the box and search function without the black box line! Matt said, on June 28, 2006 10:48 AM:
I was wondering, I want to put this google bar in my banner on my page, but I am building it in Fireworks and there is no code view, can I do this? I also will be using either Dreamweaver or FrontPage, could I put it in my banner using one of these programs? I would use the banner as a background image except I have my buttons on it so I am going to have to import it as multiple Fireworks files. Help would be great! Thanks! nick said, on July 6, 2006 9:59 AM:
I added the Google site search to my site last year. But it does not find new content. For example, I added the terms "yankee doodle dandy" to a test page back on 9/9/2005. However, upon a "site" search, it does not locate the page with that term. Can I assume that my site must be re-indexed by Google before any new content will be found? thanks in advance Bill Randle said, on July 14, 2006 2:08 PM:
I've trie to put google search on my site in the top border (front page) so it will appear on each page, but I cut and pasted it, couldn't find the html for the border. Help......Nice site!!! Vish said, on July 17, 2006 1:53 AM:
hi dude....i ur site is very useful for me....here i come up eiyh one question... i need to add my website in google search... i need the simple steps in designing , implemetation & i also want to know about aother pay search engines... it will be very help full for me if u do this Steve said, on August 8, 2006 10:55 AM:
Hi Dave - This should be easy for you, but I'll still buy you a Chai if you can help... I just put an Adsense search box on my front page, but I'd really like the button to default checked on MY site. What do I have to modify in the code? Thank you so much. Steve said, on August 8, 2006 12:02 PM:
...And while I'm asking, I just noticed that on my OS X system, When I used the search box with "web" clicked, it turns up nothing in the search! But it's just fine on my older system. What am I doing wrong...? Thanks again. Dave Taylor said, on August 8, 2006 3:34 PM:
Steve, the AdSense search box is a different beast. Let me dig around and see what I can put together. nephi said, on August 22, 2006 2:58 AM:
I'm grateful for websites like this, and I'm very thankful for people like you, dave. Thank you very much. But I'm wondering if, for example, somebody did a search for my website and did not find it, but my other website can be found, how can I add the new website to appear in the search? Jerry Mersch said, on September 1, 2006 5:34 PM:
Dave, I can't get either of your above sets of search code to work. What could I be doing wrong. Thanks , Jerry Terri said, on September 15, 2006 7:03 AM:
I can't get Google Search box to work on my intranet site. Can it work on an intranet site? Kartik said, on September 25, 2006 3:37 PM:
hello dave,actually i am kind of new to adsense and web designing.I have a blog at http://technogeekzz.blogspot.com/ at blogger.com.Now Jeroen Messely said, on September 29, 2006 7:41 AM:
I am truly amazed by this site! Why are you doing this? WHEN are you doing this? - Anyway, I very much like the 'additional tweaks' version of the script on top of this page. Can you also do it the other way round? I mean, what is the code to create a decent search box and submit button just to search your own site and a little check box underneath if you want to search all of Google? Thanks. Dave Taylor said, on September 29, 2006 10:21 AM:
You can most definitely tweak things. Have a look at how I integrated the AdSense for Search system into my Intuitive Life blog, actually: http://www.intuitive.com/blog/ (it's on the right nav bar, about half-way down the page) Then read this to see how it was done: http://www.askdavetaylor.com/how_can_i_get_google_search_results_on_my_site.html jason said, on October 4, 2006 2:09 AM:
lol hey dave killer script thanks Jason Yoki said, on October 7, 2006 10:54 AM:
I added your google search tags to my webpage, which didn't pass XHTML validation. To be sure, I pasted your tags on an empty page, but it still earned one error as below. Please help! +++++++++++++ value="askdavetaylor.com" checked /> only search Ask Dave Taylor "VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance. How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ... Dave Taylor said, on October 7, 2006 12:46 PM:
Easily fixed to be fully XHTML compliant: value="askdavetaylor.com" checked="checked" /> that's all there is to it. Mike said, on October 7, 2006 5:23 PM:
Hi Dave, Thanks, Mike Yoki said, on October 13, 2006 2:19 PM:
Hello Dave, Thank you for answering my earlier question. Your answer helped me understand the validation error message! Keith said, on October 29, 2006 6:21 PM:
Hi Dave - I'm using frontpage to design my site and am having some problems with the search box. I copied the code you gave me onto my site and it doesn't seem to return any results. I understand that it won't return anything results from my site yet since I just registered with Google, but shouldn't it return results for searches outside of my site? Right now, when I click the button, nothing happens. Help - and thanks for all the good advice. Mohamed Hassan said, on November 6, 2006 10:41 AM:
Nice article, i have a simple question, is it legal to edit the google search form ,remove the google image and radio? i would like to do that on my site www.BadrIT.com. Dave Taylor said, on November 6, 2006 3:35 PM:
Mohamed, I guess it depends on how you define "legal". There's no *law* saying you can't do that, and I really can't imagine that Google is going to notice or really care if you tweak with the script if you're sending them traffic. However, I do recall that the terms of service for searches indicates you shouldn't be monkeying with the script. Muhammad Hassan said, on November 13, 2006 9:36 AM:
Thanks for your reply, i reviewed the terms of service but the only restriction i could found is that i must put google logo, can you tell me please where is the part that say not to play with the scripts, i am feeling that i may missed some thing!
Margaret said, on November 17, 2006 2:18 PM:
First thanks for all the helpful information. I imported the code and when I search "my" site, for a word, for example, Necklaces, it returns results from my shopping cart software, but not from my site proper. When do a Google site search for www.maggies107.com, I get the first page of my site, and the shopping cart data. What do I need to do to get the balance of my website to show up? Would including the sitemap for the Google information cure this? Thanks for the info. Appreciate the service, as I am in the boonies with no other brains to pick. u said, on November 28, 2006 1:09 AM:
This page requires Unicode support of your browser. You need "Arial Unicode MS" font to properly access this page. If you see any junk characters, square boxes or question mark, it shows that you do not have unicode font installed on your machine. Microsoft Office 2000 or higher version comes with this font. You can install this font from the Office CD. You may try to download particular language font from George Elliott said, on December 8, 2006 3:18 AM:
Thanks for the code. Great help!!! Viscouse said, on January 9, 2007 7:42 AM:
Hi Dave! Wicked awesome plugin. But, I do have a query. First: It works. No sweat. Roger said, on January 12, 2007 3:19 PM:
Dave, Girish said, on January 13, 2007 11:32 AM:
Thanks for the code to add google search box in my blog. But i have a problem integrating wikipedia search within the same script.. i tried making another button for wikipedia but with no success with the search results. Since i am not that familiar with HTML, i couldn make it work. Is there any way u can make it work? Thi-AIT said, on January 26, 2007 12:56 AM:
Dear Mr.Dave, When I add your code into my blogger:
"Please correct the error below, and submit your template again. Please help me to solve this problem. Thanks you so much. Thi. Karen said, on January 30, 2007 10:10 AM:
My server has a pre-coded search query box that searches just my site and does what I need for the most part. I am satisified with that aspect, yet is there a code I can insert within their code that will HIGHLIGHT the search result? I have an example for test search box on the url: http://www.puddleofmuddfanpage.com/upchurch.htm A search of 'Chicago' yields 13 results, but I have a lot of text on the site and I feel the users will get frustrated trying to find their keyword without a highlight tag. Or another option, is there a code that will make it jump to the first result within the website, then a next button, similar to the search option for a keyword in Microsoft Word Document that will make it jump right to the next result? FrontPage has an insert search box option, but I have a code conflict with my server and I'd rather just use the servers code and I insert their code manually. My site is new and hasn't been listing on Google yet so the Google search box isn't an option yet. Thanks for all your assistance to others, I have been reading a lot of your site today. Chaitanya Parekh said, on February 12, 2007 6:55 AM:
It was really fruitful and it was up to my needs it also proved to be inspiration for me i tried and found out Google Custom Search Engine Ultimately very happy.... Karen said, on February 12, 2007 4:04 PM:
Thanks Chaitanya Parekh ! With a little work I finally got it to search all of my pages and not just the front page. Also for the ease of use for my visitors, I just added a message above the search box to view in 'cached' for their keywords to be highlighted since I have a lot of text on my pages. I appreciate your suggestion for to Google Custom Search Engine option. Up and running perfectly, thanks again.
I do have a comment, now that you mention it!Check This Out Too... |
Recent Entries
Look for Answers
Recommended
All Our Categories
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help Find Me on Google+ ADT on G+ |
I tried this and when I try to enter a search term it sends me to the google page. Any thoughts on what I may be doing wrong or not doing.
Thanks