Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
All-in-one Internal Site Search script
Results 1 to 2 of 2

Thread: All-in-one Internal Site Search script

  1. #1
    Senior Member ghaza's Avatar
    Join Date
    Oct 2013
    Multan, Pakistan
    ΑΡ Credit

    All-in-one Internal Site Search script

    This useful script allows your visitors to search the contents of your site by leveraging the 3 most popular search engines- Google, Yahoo, and MSN. Now your site's search is truly covered!

    Simply insert the below into the <body> section:

    HTML Code:
    <form name="jksearch" action="http://www.google.com/search" method="get" onSubmit="jksitesearch(this)">
    <p>Search JavaScript Kit:<br />
    <input id="hiddenquery" type="hidden" name="q" />
    <input name="qfront" type="text" style="width: 200px" value="Webmaster Forum" /> <input type="submit" value="Search" /><br />
    <div style="font: bold 11px Verdana;">Google:<input name="se" type="radio" checked>  Yahoo:<input name="se" type="radio">  MSN:<input name="se" type="radio">
    <script type="text/javascript">
    //Enter domain of site to search.
    var domainroot="www.adminspoint.com"
    var searchaction=[ //form action for the 3 search engines
    var queryfieldname=["q","p","q"] //name of hidden query form for the 3 search engines
    function switchaction(cur, index){
    function jksitesearch(curobj){
    for (i=0; i< document.jksearch.se.length; i++){ //loop through radio to see which is checked
    if (document.jksearch.se[i].checked==true)
    switchaction(document.jksearch.se[i], i)
    document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.qfront.value
    <p style="font: normal 11px Arial">This free script provided by<br />
    <a href="http://www.adminspoint.com">adminspoint</a></p>

    Demo is available in the attachment.
    Attached Files Attached Files

  2. #2
    Administrator M.A.A's Avatar
    Join Date
    Oct 2011
    ΑΡ Credit
    So, This code does not show all web pages in search result. It only display the pages indexed by google, bing or yahoo.

Similar Threads

  1. Replies: 1
    Last Post: 11-13-2013, 09:31 AM
  2. Replies: 0
    Last Post: 11-07-2013, 05:02 PM
  3. Replies: 9
    Last Post: 08-21-2013, 08:06 AM
  4. Readable PHP script
    By Meer in forum Programming
    Replies: 0
    Last Post: 10-19-2010, 06:42 AM
  5. Run shell script from web page
    By Meer in forum Web Servers
    Replies: 0
    Last Post: 10-05-2010, 07:20 PM

Posting Permissions

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