Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Website search function (https://www.cableforum.uk/board/showthread.php?t=21669)

printerman 20-12-2004 14:16

Website search function
 
Hi,
i'm designing my works website. Its my first web design and its slow going but i'm getting there. We are a bit skint (very skint!) at present and can't afford someone to do it for us so i said i'd do it. I'm getting along fine but i don't know html so i'm using an editor to do it. What i really want is to be able to add a search function which sits at the side of the left hand page in the middle. I don't want any adverts, popups, little logos on the bottom of the seach function. I just want search and a box. End of......
Can someone please help me get some brownie points and tell me where i can get one for free. All the ones i've come accross have adds with them.

Thanks in advance of any help

altis 20-12-2004 14:27

Re: Website search function
 
You can use Google and limit the search to one particular site viz:

http://www.google.co.uk/search?q=pri...bleforum.co.uk

printerman 20-12-2004 14:56

Re: Website search function
 
Thats GREAT!!! Sorry i don't like being spoonfed but how do i get this via my own webpage....? I like what its doing but i don't know how to do it.?

altis 20-12-2004 15:12

Re: Website search function
 
Can you run any server-side scripts, like PHP, or are you restricted to just client-side stuff, like Javascript?

printerman 20-12-2004 15:29

Re: Website search function
 
I'm sorry i have no idea....i'm just doing the site content and design ....who and how its hosted is beyond me. I know this doesn't help but its really all i know.

altis 20-12-2004 15:37

Re: Website search function
 
Looks like you'll have to stick to Javascript then. This is a shame 'cos not all browsers have Javascript enabled. Because it can do nasty things - like fiddle with your registry :eek: - Javascript is often disabled within many organisations.

Anyway, give me a while and I'll try to work something out....

printerman 20-12-2004 15:45

Re: Website search function
 
thats great...thankyou very much.

themelon 20-12-2004 15:52

Re: Website search function
 
For ease of use jobbies I generally use this from google.

It may only work if you site has been crawled by google spiders though:

Just replace 'www.cableforum.co.uk' with whatever your site is:

<HTML>
<BODY>
<FORM method=Get action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF">
<tr>
<td>
<INPUT TYPE=text name=q size=25 maxlength=255 value=""><INPUT type=submit name=btnG VALUE="Search">
<input type=hidden name=domains value="http://www.cableforum.co.uk"><br>
<input type=radio name=sitesearch value="">World Wide Web<input type=radio name=sitesearch value="http://www.cableforum.co.uk" checked> Your website
</td>
</tr>
</TABLE>
</FORM>
</BODY>
</HTML>

Position it where you want on the page, you can play around with the number currently '25' to make the text box smaller.

You can play around with the formatting to your hearts content once its inserted in a table or div. It depends exactly what your size requirements are. :)

printerman 20-12-2004 16:26

Re: Website search function
 
Thats fantastic!! I've edited it so...


<HTML>
<BODY>
<FORM method=Get action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF">
<tr>
<td>
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search">
<input type=hidden name=domains value="<A href="http://www.mywebsite.com"><br">http://www.mywebsite.com"><br>
</td>
</tr>
</TABLE>
</FORM>
</BODY>
</HTML>
Am i right in thinknig this will search MY SITE ONLY.
Very simple for some but completely new to me!! Thankyou very!!! MUCH!

daxx 20-12-2004 16:34

Re: Website search function
 
hint: do a few searches yourself to get the google spider to go along and trawl the new site for info before you 'go live', alternatively post the link on here and no doubt a few of us will 'help you along'

themelon 20-12-2004 16:45

Re: Website search function
 
Quote:

Originally Posted by printerman
Thats fantastic!! I've edited it so...


Am i right in thinknig this will search MY SITE ONLY.
Very simple for some but completely new to me!! Thankyou very!!! MUCH!

Just having a look, dont think the above will work. See if I can fix it :)

Caspar 20-12-2004 16:53

Re: Website search function
 
Ive just PM'd you printerman ;)

themelon 20-12-2004 16:58

Re: Website search function
 
This should do it

<FORM ACTION="http://www.google.com/search" method=get>
<div align="center">
Find in this site:
<br>
<input type="hidden" name="output" value="myresults">
<input type="hidden" name="sitesearch" value="www.cableforum.co.uk">
<input type=text name=q size=10>
<input type=submit value="Search" name="submit">
<br>
</font></div>
</FORM>

MetaWraith 20-12-2004 17:35

Re: Website search function
 
Complete instructions for how to add Google to your own pages
http://www.google.com/searchcode.html

printerman 20-12-2004 19:36

Re: Website search function
 
Thats great. I'll try it again tomorrow when i'm at work ..i'll let you know how i get on.....


All times are GMT. The time now is 05:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum