2012-04-29 51 views
0

我想將Google羣組附加到我的網站。有沒有辦法做到這一點?請幫忙。我需要HTML代碼才能將此組附加到我的網站。將Google羣組附加到我的網站的HTML代碼

+1

[Stack Overflow不是您的個人研究助理](http://meta.stackexchange.com/a/128553/140505) – Oded 2012-04-29 08:11:44

回答

1

您可以使用iframe和一些JavaScript

<iframe id="forum_embed" 
src="javascript:void(0)" 
scrolling="no" 
frameborder="0" 
width="900" 
height="700"> 
</iframe> 

<script type="text/javascript"> 
document.getElementById("forum_embed").src = 
    "https://groups.google.com/forum/embed/?place=forum/forum-name" + 
    "&showsearch=true&showpopout=true&parenturl=" + 
    encodeURIComponent(window.location.href); 
</script> 

那裏論壇-name是谷歌組的名稱

瞭解更多關於它here

請參見本jsFiddle example該組foresite