Help - Search - Members - Calendar
Full Version: Web Design, Coding Help
Hashkafah.com > Misc. Advice & Help! > Technology
GoodEats!
I need to revamp a web site for my job.

I am good at making sites using Dreamweaver, but I have very low coding skills. I actually plan on taking classes, but meanwhile.. I still have a job to do.

Does anyone know how embedding the code for the Google search box works?

I set it on the home page, I might keep it at the top of all the pages.

So I tried it out of course and all it does is clear the search box and stay where it is. I figure it needs to be set to show results on a specific page, or something.

I really don't know anything about this. Any info would be helpful?
HolyApple
QUOTE(GoodEats! @ Nov 15 2007, 09:27 AM) *
I need to revamp a web site for my job.

I am good at making sites using Dreamweaver, but I have very low coding skills. I actually plan on taking classes, but meanwhile.. I still have a job to do.

Does anyone know how embedding the code for the Google search box works?

I set it on the home page, I might keep it at the top of all the pages.

So I tried it out of course and all it does is clear the search box and stay where it is. I figure it needs to be set to show results on a specific page, or something.

I really don't know anything about this. Any info would be helpful?



Try the following code:

<form name=f method="get" action="http://www.google.com/search" target="_blank">
<input name=q class=back type="text" name="q" size="25" maxlength="255" value="" />
<input class=back type="submit" value="Google Search"/>
<br>
</form>

It will give you the search results in a new window. (if you want it in the same window, get rid of target="_blank")
GoodEats!
Thanks!

Will it search my site, or will it search just google?

I think I forgot to mention, I need it to search my site. It's a site for a small newspaper, and people might wanna search for old articles.
HolyApple
QUOTE(GoodEats! @ Nov 15 2007, 11:39 PM) *
Thanks!

Will it search my site, or will it search just google?

I think I forgot to mention, I need it to search my site. It's a site for a small newspaper, and people might wanna search for old articles.

Oh..add this line in the form code:

<input type = "hidden" name=sitesearch value="whateveryoururlis.com"/>


so - what you the code overall that you need is:
<form name=f method="get" action="http://www.google.com/search" target = "_blank">
<input name=q type="text" name="q" size="25" maxlength="255" value="" />
<input type="submit" value="Google Search"/>
<input type = "hidden" name=sitesearch value="whateveryoururlis.com"/>
</form>

(I removed the style sheet references which i had in the previous post - i just copied an dpasted it then from a page of my own)

Obviously you replace that area with your url or site address. This will then only return google results within your site.

(this is still using google search - its not creating your own search engine. That would be far far more complicated).
avreich
QUOTE(HolyApple @ Nov 19 2007, 04:43 PM) *
Oh..add this line in the form code:

<input type = "hidden" name=sitesearch value="whateveryoururlis.com"/>
so - what you the code overall that you need is:
<form name=f method="get" action="http://www.google.com/search" target = "_blank">
<input name=q type="text" name="q" size="25" maxlength="255" value="" />
<input type="submit" value="Google Search"/>
<input type = "hidden" name=sitesearch value="whateveryoururlis.com"/>
</form>

(I removed the style sheet references which i had in the previous post - i just copied an dpasted it then from a page of my own)

Obviously you replace that area with your url or site address. This will then only return google results within your site.

(this is still using google search - its not creating your own search engine. That would be far far more complicated).


If you want to create on site search, you should be able to download something open source probably in PHP. Additionally Google offers custom search through their apps products which you can download at Biyts.com

As far as coding, instead of using dreamweaver I would strongly reccomend learning basic coding since it is alot easier to optimize your site when you are not confined to a software package. Let me know if I can be of assistance.

International
Did you get it figured out in the end?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.