![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm using Code Blue - just upgraded from Revolution 3.0 - and I had Google search working with the search form before, but now I'm having trouble. I want to retain the slick new look of the search box in code blue.
Here's what the Code Blue search looks like: <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" value="Search this website..." name="s" id="s" onfocus="if (this.value == 'Search this website...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this website...';}" /> <input type="submit" id="sbutt" value="GO" /></form> And this is how I had it working with Revolution 3.0: <form action="URL-Search-Page-is-RemovedForPrivacy" id="cse-search-box"> <input type="text" value="To search, type keywords and hit enter..." name="q" id="s-head" onfocus="if (this.value == 'To search, type keywords and hit enter...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'To search, type keywords and hit enter...';}" /> <input type="hidden" name="cx" value="partner-publisher-string-here" /> <input type="hidden" name="cof" value="FORID:11" /> <input type="hidden" name="ie" value="ISO-8859-1" /> </form> I'd also like to change the text displayed inside the box (To search, type ...) - when I've tried to change it previously, it lost that ability to instantly vanish when I clicked in the box. Does that make sense? Thanks... |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change the search bar for a search bar by google ? | Picool | General Discussion | 9 | 09-26-2010 07:55 AM |
| Lijit vs. WP search vs. Google Custom search | Jeff Hester | General Discussion | 1 | 05-14-2010 10:38 AM |
| Replacing Old Search Bar With Google's Search Bar | byron | General Discussion | 2 | 02-06-2009 02:30 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us