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

    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="" 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=""
    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<; i++){ //loop through radio to see which is checked
    if ([i].checked==true)
    switchaction([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="">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

    My Social Networking

    Add M.A.A on Facebook Add M.A.A on Google+
    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