Tristan
Resident Alien
Administrator
Berserker Poster
   
Offline
Posts: 8937
nihil sunt omnia
|
 |
« on: March 20, 2004, 01:09:09 PM » |
|
Here is the code to add a Google search form to your site and ensure it is only searching for pages on your site that Google has spidered (you must have pages spidered by Google for this to work): <script> function CheckForm(e) { if( e.q.value=="" ){ alert('You must enter seach words'); e.q.focus(); return false; } e.q.value += " site:www.domain.com"; return true; } </script> <hr> <form name=abcd action="http://www.google.com/search" onsubmit="return CheckForm(this)"> <input maxLength=256 size=55 name=q value=""> <input type=hidden name=ie value="ISO-8859-1"> <input name=hl type=hidden value=en><br> <input type=submit value="Google Search" name=btnG> <input type=hidden name=meta value=""> </form> Remember to replace www.domain.com with your domain name. This code is courtesy of girish at www.langchat.com 
|
|
|
|
|
Logged
|
|
|
|
|
Pete
|
 |
« Reply #1 on: March 21, 2004, 11:00:43 AM » |
|
Danielle said .........searching for pages on your site that Google has spidered (you must have pages spidered by Google for this to work): So.. er.. How do you know if youve been 'spidered' (Apart from little foot marks and cobwebs all over your body)
|
|
|
|
|
Logged
|
|
|
|
Tristan
Resident Alien
Administrator
Berserker Poster
   
Offline
Posts: 8937
nihil sunt omnia
|
 |
« Reply #2 on: March 21, 2004, 11:03:32 AM » |
|
Hi Pete, Well, you would put the code on your page and, if no results are returned, you haven't been.  I hope this helps. 
|
|
|
|
|
Logged
|
|
|
|
|
girish
|
 |
« Reply #3 on: March 22, 2004, 06:17:02 AM » |
|
To know whether you have been spidered go to google.com and search for site:www.yourdomain.com For a working sample of the search go to http://www.langchat.com/search.aspsearch for 'lunarpages' in that page. 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
sopidy
|
 |
« Reply #5 on: March 26, 2004, 03:49:03 PM » |
|
is it possible to just add a google or yahoo search engine to a website? not necessarily to search in MY site. i want my users to be able to make my page their home page & be able to make internet searches if they want to.
|
|
|
|
|
Logged
|
|
|
|
|
girish
|
 |
« Reply #6 on: March 27, 2004, 06:15:10 AM » |
|
Sure just remove the following line from the above code e.q.value += " site:www.domain.com";
and then use that form.
|
|
|
|
|
Logged
|
|
|
|
|
robast2
|
 |
« Reply #7 on: April 27, 2004, 07:26:30 PM » |
|
Here is the code to add a Google search form to your site and ensure it is only searching for pages on your site that Google has spidered (you must have pages spidered by Google for this to work): <script> function CheckForm(e) { if( e.q.value=="" ){ alert('You must enter seach words'); e.q.focus(); return false; } e.q.value += " site:www.domain.com"; return true; } </script> <hr> <form name=abcd action="http://www.google.com/search" onsubmit="return CheckForm(this)"> <input maxLength=256 size=55 name=q value=""> <input type=hidden name=ie value="ISO-8859-1"> <input name=hl type=hidden value=en><br> <input type=submit value="Google Search" name=btnG> <input type=hidden name=meta value=""> </form> Remember to replace www.domain.com with your domain name. This code is courtesy of girish at www.langchat.com  What is benefit of having visiots leave your site via a search form? 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
car-loan
|
 |
« Reply #9 on: May 02, 2004, 03:27:33 PM » |
|
Having Google search on your site is a great way for people to find just what they're looking for in your content vs. having to follow navigation structure, etc.
Note that this search function specifically limits results to those from your site.
Cheers!
|
|
|
|
|
Logged
|
http://www.car-loan-wiz.com - Car Loan Wiz provides auto loans info, tips on car loans, and a auto loan calculator - Find bad credit car loans or use our car loan calculator - Learn about auto loan rates and refinance car loan sources. Refinancing auto loans is easy with our low rate auto finance links.
|
|
|
|
Tito
|
 |
« Reply #10 on: July 19, 2004, 08:33:32 AM » |
|
And if you want to make a little money, go to www.google.com/adsense. You get the Google searchbar code specifically tailored for your site. Search results open up in a different page with your logo on top. If people click on the Google ads on top, you get paid. If you're gonna give Google free advertising, might as well get something out of it.
|
|
|
|
|
Logged
|
I'm such a newbie. Please forgive my ignorance.
|
|
|
|
JD
|
 |
« Reply #11 on: July 31, 2004, 08:28:03 PM » |
|
Google has sold there cyber soles. Get ready to see another dot/com tank before your cyber eyes. *L*
|
|
|
|
|
Logged
|
Put Down the Mouse and Step Away From the Computer.
|
|
|
|
cavarran
|
 |
« Reply #12 on: August 24, 2004, 02:41:33 PM » |
|
How about web content stored in a database? How does google grab that? or does it? If not, what are some solutions to be able to search database driven websites? I really really need to know!
Peter
|
|
|
|
|
Logged
|
|
|
|
|
RickJ
|
 |
« Reply #13 on: January 28, 2005, 06:40:37 AM » |
|
I like the alternatives that picosearch.com and freefind.com offer. With them you can be sure every single page in your site is searched when users search...without worrying, wondering, or digging around to find out if Google has spidered it.
The downside: The free versions have ads. You pay to have them without ads.
|
|
|
|
|
Logged
|
|
|
|
|