Removing Google Coop Search Box Grey Text?

Discussion in 'Web Design and Development' started by Makosuke, Oct 31, 2006.

  1. Makosuke macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #1
    I'm wondering if anybody familiar with Google Coop knows if there are any issues connected with removing that chunk of Javascript that Google gives you with the default Coop search box code. I don't really want the grey "Google Custom Search" text to show up in the box by default and as far as I can tell that's all the included Javascript does, but I'm cautious about messing around with code that Google gives you.

    I'm under the impression that the hidden "cx" form element that links the box to your customized Coop search and the "cof" one that tells it what kind of advertising you want are all that's required, but anybody have experience with deleting the Javascript chunk?
     
  2. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #2
    Yes! Just don't include the javascript (illustrated below). The search will still work without it!

    Code:
    <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_013834750016609345743%3Ag3xdtmbbzsk"></script>
     
  3. Makosuke thread starter macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #3
    Thanks. I figured as much, but when it comes to goofing with Google-suppled code, it's always nice to hear a second opinion.

    Admittedly, Coop seems to be pretty darned flexible about how you feed searches to the engine--as far as I can tell, as long as you send them a properly formatted search, they could care less how you generated it. A big step up from the "Don't so much as breathe on the code!" AdSense for search, in all it's crusty, form-based, Transitional glory.
     

Share This Page