Welcome to the Webmaster Forum.
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    589
    Rep Power
    6

    Default Search box ( Search engine ) for your page

    Dint try it but you can try and reply here if its useful

    Code:
    <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: <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>
    
    <BR> 
    </P></FORM></DIV><BR>#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>
    
    <BR> 
    </P></FORM></DIV><BR>

  2. #2
    Join Date
    Mar 2010
    Posts
    47
    Rep Power
    3

    Default

    google web master tool also offers websearch tool. you have to paste codes in your web and thats it. it will help your users

  3. #3
    Join Date
    Mar 2010
    Posts
    98
    Rep Power
    3

    Default

    ya this is good one and many sites are using it also
    for example: guruji.com and many more

  4. #4
    Join Date
    Mar 2010
    Posts
    98
    Rep Power
    3

    Default

    hey i remember
    You can even go for Bing.com source codes
    It also provides good definite results

  5. #5
    Join Date
    Mar 2010
    Posts
    147
    Rep Power
    0

    Default

    Ya this tool is really useful and many sites are also using it example has been given by the Bekbuck.
    But I prefer to use the google webmaster tools as they are easy to use.

  6. #6
    Join Date
    Mar 2010
    Posts
    613
    Rep Power
    6

    Default

    There are some websites which market their search engines that can be uploaded on your sites. Why not think about job search engines and career search engines for your site?

  7. #7
    Join Date
    Apr 2011
    Posts
    23
    Rep Power
    0

    Default

    ya this is good one and many sites are using it also
    for example: guruji.com and many more


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Back to top