Oops, my bad. Try this:
searchControl.setSearchStartingCallback(this,
function() {
var divs = document.getElementsByTagName('div');
for (var i=0, div; div = divs[i]; i++) {
if (/gsc-title/.test(div.className)) {
div.style.whiteSpace = 'nowrap';
var s = div.innerHTML;
if (s == 'Image') s = 'Custom title for Image results';
if (s == 'Video') s = 'Custom title for Video results';
div.innerHTML = s;
}
}
});
-- omr
--
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.