Tuesday, March 20, 2007

Gtalk gadget on your site without the border

Place Gtalk gadget on your site without the border
By place the flowing code in your blog or site you have the google Talk gadget without the ugly border:


<pre> <script src="http://talkgadget.google.com/talkgadget/host?v=3508465329"></script>
<script type="text/javascript">
var clientUrl = "http://talkgadget.google.com/talkgadget/client?fid=gtalk__MODULE_ID__&relay=http%3A%2F%2Fwww.google.com%2Fig%2Fifpc_relay";
if (window.top !== window.self) {
window.location = clientUrl;
}
</script>
<script type="text/javascript">
clientUrl += "&host=" + encodeURIComponent(window.location);
var height = (screen.height <= 768) ? 368 : 442;
document.write('<iframe id="gtalk__MODULE_ID__" name="gtalk__MODULE_ID__" style="width: 100%; height: ' + height + 'px; margin-top: 5px;" frameborder="0" src="' + clientUrl + '"></iframe>');
var host = new _GTalk("gtalk__MODULE_ID__", "http://talkgadget.google.com/talkgadget/ifpc_relay");
</script>

No comments: