Oups,

My question was just dead stupid. I simply resolve the problem with
basic loop on td tag.

Sorry Jeremy

Thks
On Sep 9, 4:25 pm, bronson <[email protected]> wrote:
> Hi Jeremy
> Tkhs for your answer.
>
> My question is still pending. How to run a specific process to build
> my own custom branding.
>
> The source
>
> "
> <div id="search_control" class="Note-Epce" style="margin-left:10px;
> margin-top:5px;"><form class="gsc-search-box" accept-
> charset="utf-8"><table cellspacing="0" cellpadding="0" class="gsc-
> search-box"><tbody><tr><td class="gsc-input"><input autocomplete="off"
> type="text" size="10" class=" gsc-input" name="search"
> title="Chercher"></td><td class="gsc-search-button"><input
> type="submit" value="Chercher" class="gsc-search-button"
> title="Chercher"></td><td class="gsc-clear-button"><div class="gsc-
> clear-button" title="effacer les résultats">&nbsp;</div></td></tr></
> tbody></table><table cellspacing="0" cellpadding="0" class="gsc-
> branding"><tbody><tr><td class="gsc-branding-user-defined"></td><td
> class="gsc-branding-text"><div class="gsc-branding-text">fourni par</
> div></td><td class="gsc-branding-img"><img src="http://www.google.com/
> uds/css/small-logo.png" class="gsc-branding-img"></td></tr></tbody></
> table></form></div>
> "
> The JS script
>
> "      google.load('search', '1.0');
>
>       function OnLoad() {
>                 // create a search control
>         var searchControl = new google.search.SearchControl();
>
>                 var options = new GsearcherOptions();
>                 options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
>
>                 var ws=new google.search.WebSearch();
> /               options.setRoot(document.getElementById("centre"));
>                 searchControl.addSearcher(ws,options);
>                 searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);
>         searchControl.addSearcher(new google.search.BlogSearch());
>         searchControl.addSearcher(new google.search.VideoSearch());
>         searchControl.addSearcher(new google.search.LocalSearch());
>
>         // create a draw options object so that we can position the
> search form root
>         var options = new google.search.DrawOptions();
>         options.setSearchFormRoot(document.getElementById
> ("search_control"));
>
>         searchControl.draw(document.getElementById
> ("containerResults"), options);
>         var mySearchForm = new google.search.SearchForm(true,
> document.getElementById('search_control'), {buttonText:'Chercher'});
>         mySearchForm.setOnSubmitCallback(searchControl,function(){
>                                         if(navigator.userAgent.indexOf('MSIE 
> 6', 0) > 0 ||
> navigator.userAgent.indexOf('MSIE 5', 0) > 0 ){
>                                                 alert(navigator.appName);
>                                                 alert('Fonction en cours 
> d’installation sur IE 6');
>                                                 return;
>                                         }
>                         this.execute(mySearchForm.input.value);
>         });
>         mySearchForm.setOnClearCallback(searchControl,function(){
>                 searchControl.clearAllResults();
>                         mySearchForm.input.value = '';
>                         fadeFermer('recherche');
>         });
>
>                 searchControl.setOnKeepCallback(this, KeepHandler, "Ajouter");
>
>                 lien = function(){var a=document.getElementById
> ('containerResults').getElementsByTagName('a'), b=function(a){return
> function(){PopupCentrerFavori(a.href, this.innerHTML);return false;}};
>                 for(var c=0;c<a.length;c++){
>                 var d=a[c];
>                 
> if(d.className.match(/gs-(title|visible-url)/)){d.onclick=b(d);}
>                         }
>                  var anchors = document.getElementById
> ('containerResults').getElementsByTagName('a');
>                 for (var i = 0; i < anchors.length; i++) {
>                 if(anchors[i].className=='gsc-trailing-more-results'){
>                                 anchors[i].innerHTML="";}}
>                 /* */
>
>                         var AjouterOmO = document.getElementById
> ('containerResults').getElementsByTagName('div');
>                         for (var i = 0; i < AjouterOmO.length; i++) {
>                 if(AjouterOmO[i].className=='gsc-keeper'){
>                                 if(!butineur.IE) {AjouterOmO[i].innerHTML="<a 
> href='javascript:void
> (0)' style=\"width:200px; border:solid 0px #000000; \" onmouseover=
> \"choixFavoriPopup(this.offsetTop); \" onmouseout=\"$
> ('optionGooglePopup').remove(); \"><div syle=\"display:inline;
> \">&nbsp;</div></a>";}
> if(butineur.IE) {AjouterOmO[i].innerHTML="<a href='javascript:void(0)'
> title='Pour mettre en signet Comperio©, envoyer par E-Mail ou par SMS'
> style=\"width:200px; \">&nbsp;</a>";}}}
>
> /* $(‘optionGooglePopup’).fadeOut({delay:30, begin:0.8, end:0.3})*/
> /*              $('centre').innerHTML = $('containerResults').innerHTML*/
>                 document.getElementById("recherche").style.display='block';
>                 document.getElementById("centre").style.display='none';
>                 }
>
>                 document.getElementById("recherche").style.display='none';
>                 searchControl.setSearchCompleteCallback(this, lien);
>
> /*        mySearchForm.execute("Ferrari Enzo"); */
>       }
>
> //              var AjouterOmO = document.getElementById
> ('containerResults').getElementsByTagName('div');
>
>           function KeepHandler(result) {
>                         var node = result.html.cloneNode(true);
>                         var savedResults = 
> document.getElementById("saved_results");
>                         savedResults.appendChild(node);
>                         var valeur = result.title
>                         var regex = new RegExp('<\/?(span|strong|b)>','gi');
>                         var valeur = valeur.replace(regex,'');
>                         valeur = valeur +"\\\\"+ result.url;
>                         CookTemp("CompFavori", valeur);
>                         
> //document.getElementById("Titre").value=result.title.replace
> (regex,'');
>                         var title = result.title.replace(regex,'');
>                         //document.getElementById("Url").value=result.url;
>                         var Url = result.url
>                         if(!butineur.IE) {document.getElementById
> ("masque").style.display='block'
>                         document.getElementById("Loading").style.display= 
> 'block';};
>                         if(butineur.IE) {alert("En cours de mise en oeuvre 
> sur IE");
> return; };
>
>                         saisieFavori('saisieFavori.php', 
> 'PropositionRessources', title,
> Url);
>                         
> //document.getElementById("Favori").style.display='block';
>                         }
> /**/
>           google.setOnLoadCallback(OnLoad,true);
> "
>
> Thks for your reply.
>
> On 9 sep, 14:58, Jeremy Geerdes <[email protected]> wrote:
>
>
>
> > As long as you retain the" integrity of the "powered by Google" slogan  
> > (including the Google logo), I think you'll be okay rearranging the  
> > overall layout. There is, however, no built-in method of doing this.  
> > You'll have to build your own custom branding table and search form  
> > using an html editor or other means.
>
> > Jeremy R. Geerdes
> > Effective website design & development
> > Des Moines, IA
>
> > For more information or a project 
> > quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...
> > [email protected]
>
> > Unless otherwise noted, any price quotes contained within this  
> > communication are given in US dollars.
>
> > If you're in the Des Moines, IA, area, check out Debra Heights  
> > Wesleyan Church!
>
> > And check out my blog, Adventures in Web Development, 
> > athttp://jgeerdes.blogspot.com
> >   !
>
> > On Sep 9, 2009, at 7:18 AM, bronson wrote:
>
> > > Hi,
>
> > > I would like to know if there is a way to modify the content of gsc-
> > > branding row included in the search-form div constructed for Google
> > > CSE.
>
> > > Ths for your answer
>
> > > On 7 sep, 16:52, bronson <[email protected]> wrote:
> > >> Hi every body,
>
> > >> Just a question, is it possible to change position of Google text and
> > >> image branding from the right side of search control to the left
> > >> side ? Is it legal ?
>
> > >> This to put few stuffs in the <td class="gsc-branding-user-
> > >> fefined"></
> > >> td>.
>
> > >> I can't figure out how this table'line is built.
>
> > >> tks for your comments.
>
> > >> Rgds
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to