[drupal-support] adding some links in blog page

Carlos Rivero serverleader at gmail.com
Fri Aug 12 18:32:48 UTC 2005


maybe someone can find this useful
I use something similar to use adsense search on some parts of the
website using the title as a search string:

$links[] = "<script language=\"JavaScript\" type=\"text/javascript\"><!--
function search ( mytext )
{
  document.google.q.value = mytext ;
  document.google.submit() ;
}-->
</script><!-- Search Google --><form name=\"google\" method=\"get\"
action=\"http://www.google.com/custom\" target=\"_top\">
<input type=\"hidden\" name=\"q\" value=\"\"></input>
<input type=\"hidden\" name=\"sa\" value=\"Search\"></input>
<input type=\"hidden\" name=\"client\" value=\"pub-9360264097731242\"></input>
<input type=\"hidden\" name=\"forid\" value=\"1\"></input>
<input type=\"hidden\" name=\"ie\" value=\"ISO-8859-1\"></input>
<input type=\"hidden\" name=\"oe\" value=\"ISO-8859-1\"></input>
<input type=\"hidden\" name=\"cof\"
value=\"GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;\"></input>
<input type=\"hidden\" name=\"hl\" value=\"en\"></input><a
href=\"javascript:search('".$node->title."')\">Support
GH</a></form><!-- Search Google -->";

-- 
Carlos Rivero

Create like a god, command like a king, work like a slave.



More information about the drupal-support mailing list