Post by ⓦ৹₪deⓡ on Jan 25, 2006 13:22:56 GMT -8
This code will add or the icon of your choosing to the UBBC buttons. When clicked, it will add a new UBBC tag that behaves as such.
[google]Pamela Anderson KFC site:cnn.com[/google]
will produce
Google:Pamela Anderson KFC site:cnn.com
You can enter any search term and use, presumably, all special characters that Google allows. Do NOT PM me for support or requests, that's what the coding boards are for. Edit where indicated. Enjoy.
~Wonder
Global Footer
[google]Pamela Anderson KFC site:cnn.com[/google]
will produce
Google:Pamela Anderson KFC site:cnn.com
You can enter any search term and use, presumably, all special characters that Google allows. Do NOT PM me for support or requests, that's what the coding boards are for. Edit where indicated. Enjoy.
~Wonder
Global Footer
<script>
//Google It v1.0 [CB]
//Copyright 01-25-2005 ~Wonder
//May be reposted anywhere as long as this header remains in tact
//In loving memory of Tess, the best dog in the world. I'll miss you :'(
//Place in Global Footer
//URL to Google Icon
googleIcon="http://img218.imageshack.us/img218/5996/googleicon5xs.gif";
//Google Safe Search on or off
safeSearch="off";
if(document.postForm && document.postForm.color)
{
document.postForm.color.parentNode.innerHTML+="<a href=javascript:add(\"[google]\",\"[/google]\")><img src=\""+googleIcon+"\" alt=\"Google It\" border=\"0\"></a>";
}
if(location.href.match(/action\=(display|pmview|recent|userrecentposts|gotopost|search|calendarview)/) || (!location.href.match(/action\=/) && document.postForm))
{
td=document.getElementsByTagName("td");
for(i=0;i<td.length;i++)
{
if(td[i].width=="20%" && td[i].className.match(/windowbg/))
{
r=td[i].nextSibling.innerHTML.match(/\[google\](.+?)\[\/google\]/i);
if(r!=null)
{
q=RegExp.$1;
td[i].nextSibling.innerHTML=td[i].nextSibling.innerHTML.replace(r[0],"<font style=\"font-family: 'Book Antiqua'\"><font color=0033CC>G</font><font color=CC3300>o</font><font color=DDAA00>o</font><font color=0033CC>g</font><font color=009900>l</font><font color=CC3300>e</font>:</font><a href=\"http://www.google.com/search?hl=en&safe="+safeSearch+"&q="+escape(q.replace(/<\/?.+?>/ig,""))+"\" target=\"_blank\">"+q+"</a>");
i--;
}
}
}
}
</script>