Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
Old 01-24-2011, 02:55 PM Search box
Banned

Posts: 13
Name: Iuliana
Trades: 0
Hello,
I want to add a search box where a user can find a product on my site.
Can someone tell me how I can add a search box for site content in my site?
Thanks
giulia is offline
View Public Profile Visit giulia's homepage!
 
 
Register now for full access!
Old 01-24-2011, 11:04 PM Re: Search box
Experienced Talker

Posts: 40
Trades: 0
If you want, you can add a Google search box to your site.
http://www.google.com/sitesearch/
Or you can use one written in Javascript
http://www.javascriptkit.com/script/...e_search.shtml
Chronister is offline
View Public Profile Visit Chronister's homepage!
 
Old 01-26-2011, 04:29 PM Re: Search box
AlphaTech's Avatar
Novice Talker

Posts: 13
Trades: 0
You can try this.... http://www.google.com/cse/
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

AlphaTech is offline
View Public Profile Visit AlphaTech's homepage!
 
Old 01-27-2011, 01:11 AM Re: Search box
drkeni9ma's Avatar
Skilled Talker

Posts: 66
Name: Anakin Skywalker
Trades: 0
try this..

<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="35"
maxlength="255" value=""/>
<input type="submit" value="Search"/>
__________________
No. Leave them to me. I will deal with them myself. You don't know the power of the dark side!

Last edited by drkeni9ma; 01-27-2011 at 01:13 AM..
drkeni9ma is offline
View Public Profile
 
Old 01-27-2011, 02:35 AM Re: Search box
Banned

Posts: 4
Name: johnpitter
Trades: 0
Google itself actually has a nice page providing you HTML code you can just cut and paste onto your own Web pages to develop the search box you try, and some versions beside.
johnpitter is offline
View Public Profile
 
Old 01-27-2011, 10:38 AM Re: Search box
Novice Talker

Posts: 5
Name: chris
Trades: 0
If you use adsense then google search would be best. Not only will it list results from your site it will list ads and other sites. Simple easy to use code they provide.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
chris265 is offline
View Public Profile Visit chris265's homepage!
 
Old 01-27-2011, 11:35 AM Re: Search box
TehChat's Avatar
Skilled Talker

Posts: 52
Trades: 0
I don't think that's what hes after guys. There is a script called PHP Mini Search 1.0 which you can add items to the search just for your site. Google it!
__________________
$5 Sponsored Link Advertising at
Please login or register to view this content. Registration is FREE

$20 banner Advertising at
Please login or register to view this content. Registration is FREE
TehChat is offline
View Public Profile
 
Old 01-29-2011, 05:23 AM Re: Search box
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Answer to the OP depends on how his site is implemented (and to an extent what search facilities he wants). If he's using a common shop package he may well have a search available. If not, he should consider how his items are databased and perhaps search according to that - ie let the db query do the work. Final option is to find some software that will index the site and provide a search based on that index. The only ones I've ever used are too complex for a beginner but there's plenty of free stuff out there - download and try if appropriate.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
View Public Profile
 
Old 01-31-2011, 03:43 AM Re: Search box
Banned

Posts: 49
Name: raje
Trades: 0
you can add easily google search or create it manually for your site search alone
Caitlyn is offline
View Public Profile
 
Old 02-11-2011, 05:58 PM Re: Search box
Skilled Talker

Posts: 83
Trades: 0
r u talking about google search for your website or your website internal search?
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
DmitryS is offline
View Public Profile
 
Old 02-11-2011, 07:41 PM Re: Search box
clonepal's Avatar
Average Talker

Posts: 16
Name: Nicolae Pamfile
Trades: 0
You can also use a javascript search form, example:

Code:
<!-- Search -->
<SCRIPT language=JavaScript>
var NS4 = (document.layers);    
var IE4 = (document.all);
var win = window;    
var n   = 0;
function findInPage(str) {
  var txt, i, found;
  if (str == "")
    return false;
  if (NS4) {
    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;
    if (n == 0)
      alert("Not found.");
  }
  if (IE4) {
    txt = win.document.body.createTextRange();
    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }
    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }
    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }
      else
        alert("Sorry, we couldn't find.Try again");
   }
  }
  return false;
}
</SCRIPT>

<FORM name=search onsubmit="return findInPage(this.string.value);">
<P align=center><FONT size=3>
<INPUT 
style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" 
onchange="n = 0;" size=16 name=string></FONT><BR><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=Search in page ><center><font size=2pt;><font family=Times New Roman;><b>

</P></FORM></DIV><BR><!-- /Search-->
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by clonepal; 02-11-2011 at 07:44 PM..
clonepal is offline
View Public Profile Visit clonepal's homepage!
 
Closed Thread     « Reply to Search box
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 3.04991 seconds with 12 queries