How can I make my custom search engine look like Google?

7ewis June 2, 2010
Pinterest Stumbleupon Whatsapp
Ads by Google

I am trying to make my own custom Google page called Googlew. I just want it to be a page that I change change, but searches Google still. I have made a weebly.com page for a custom Google search engine. It still doesn’t look like Google, though.

I have been playing around with the html. Here is the code:

%%TITLE%%

function bookmark() {
window.external.addFavorite(window.document.location.href,’Googlew’)
}

function init(){
window.document.form1.q.focus();
}

body,td,a,p,.h{font-family:arial,sans-serif;}
.h{font-size: 20px;}
.glink{color:#0000cc;}
.adbrite_table {text-align:center;}
#mbtd {text-align:left;}

Loading

google.load(‘search’, ‘1’, {language : ‘en’});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl(‘010561752595678284975:ybxvcfk4haw’);
customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
customSearchControl.draw(‘cse’);
}, true);

if (window.showModalDialog) {
document.write (“BookMark – Make this your homepage ” );
}

var sc_project=850565;
var sc_partition=6;
var sc_security=”76fc0ded”;
var sc_invisible=1;

init();

var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(“\\” );

var pageTracker = _gat._getTracker(“UA-3247138-1”);
pageTracker._initData();
pageTracker._trackPageview();

%%MENU%%
%%CONTENT%%
%%WEEBLYFOOTER%%

The website is Googlew.weebly.com, if you want to see how it looks at the moment.

Can someone please help me get the background white and make it look as if it is Google with a different name. And make the custom search not all centred and horrible, I want it just like Google would be.

Thank you!

  1. Rakesh Narang
    January 3, 2011 at 2:20 pm

    hey,

    i have installed google custom search on my website and want to know if i can myself search on that... please let me know.

    • Tina
      January 3, 2011 at 9:08 pm

      Rakesh,

      I suggest that you ask a new question. Besides, your question is not clear. What do you mean with 'if I can myself search on that'. Do you mean whether you are allowed to use it? Please be more specific.

  2. Alan
    July 12, 2010 at 11:54 am

    Hey do you know how to set custom search to include all sites? At the moment it is making me add sites but I want it to search the whole web like you. Cheers

    • Jack Cola
      July 13, 2010 at 12:49 pm

      Last time I used it (about a year ago), there was an option to select the whole internet. Go back a few steps, or start again and have a closer look.

      I would assume the feature will still be there.

      • Alan
        July 13, 2010 at 2:12 pm

        I found that option but it didn't work. Later on I tried re-pasting the generated code and it started working so it must've changed something client side when I was expecting it to be a server side change only.

        thanks

  3. Lewis
    June 19, 2010 at 8:45 pm

    sorry but

  4. Lewis
    June 7, 2010 at 9:03 am

    Thanks,
    I signed up to the site, b its confusing can you give me some instrusctions please?

    • Sawyer
      June 19, 2010 at 3:09 pm

      I dont get b it. what does thet mean???

    • Jack Cola
      June 20, 2010 at 2:39 am

      Google gives you all the instructions to setup Custom Search. Basically, you fill out the details, it will give you code and you copy that code onto your website.

      All you need is basic HTML knowledge

  5. Aibek
    June 4, 2010 at 1:20 pm

    or you can use Google Custom Search, http://www.google.com/cse/

  6. Lewis
    June 3, 2010 at 4:57 pm

    Thanks Jack,
    How can i use this script?

    Sorry i have only been using free websites and changing the script, not hosting them

    • Jack Cola
      June 4, 2010 at 10:15 am

      Basically, just unzip the contents of the file onto your webserver, edit the config.php file such as the colour codes, and visit the index.php site and you should be able to start searching.

      Since you use other websites, it may not work. So you can signup for a hosting account such as http://www.100webspace.com/ and upload the files there.

  7. Jack Cola
    June 3, 2010 at 6:43 am

    Hi, you may be interested in a small script that I created.
    You can download it from http://gcsearch.jackcola.org/ and click on the download link

    Basically it is a Google search engine that allows you to customize the display of the page and all the colours. Just edit the config.php file, add your own text, search button image, etc, and your Adsense ID and you can even start making money.

    So it's worth a try.

    Edit:Revised site URL

    • Ajayvijayachandraprasad
      February 26, 2011 at 1:54 am

      Thanks............

Ads by Google