Im looking for any such script that will allow users of a website search anything based only upon that website, not the rest of the web.
Any ideas?
Im looking for any such script that will allow users of a website search anything based only upon that website, not the rest of the web.
Any ideas?
What?? That doesn't do anything, it's just a form.
@ snookerman, sorry i just realised what i had copied across!
Anyway ive come up with this (below), which as you can see is great for searching anything on the web using the google search engine.
What im after is a script that will allow users to search content upon my website only.
Heres my current coding:
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="30" value="" />
<input type="submit" value="search" />
</form>
I really appreciate any help on this! thankyou.
You can accomplish this with JavaScript, I made a script for it myself once. But one of the downside to it is that you can only search what Google has indexed, but if you're site has been on the internet for a while, this shouldn't be too much of a problem.
I'll see what I can do for you...
EDIT: I finished the script, you can view a demo and get the code here: http://x96wd.tech.officelive.com/hel...te-search.html
Hope this helps!
Last edited by X96 Web Design; 02-28-2009 at 05:18 PM. Reason: update
Alex Blackie, X96 Design
My Website
I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration
danny_matthews (02-28-2009)
Thank you, that really does help.
Ideally id like the search results to open up within my own page as apposed to google. is that atall possible?
You're welcome!
From this script, not really. For that, I'd recommend you use this script by JavaScript Kit: http://javascriptkit.com/script/script2/jse/index.shtml
For this one, you just have to add all the pages you want to your own little "index" of your site. It's very customizable and very useful.
Last edited by X96 Web Design; 02-28-2009 at 11:45 PM. Reason: politeness
Alex Blackie, X96 Design
My Website
I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration
Sure, just not using the scripts that you've been posted. There are two ways to do this:
1) Use the Google Search API
2) Use Google Custom Search Engine
Both of these allow you to harness Google's services but provide them in a branded (though this might be somewhat limited depending on the solution you choose) and integrated way.
Bookmarks