我發現這真的很酷的頁面,讓你在Facebook掛鉤到您的網站:See here談起的iFrame從ASP.NET代碼背後
<iframe id="MyIframe" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.EXAMPLE.com%2F&layout=button_count&show_faces=true&width=100&action=recommend&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
我希望能夠調用此iframe在我的網頁(我正在使用ASP.NET),我希望能夠基於變量設置可見性,最重要的是我希望能夠根據變量構建的字符串更改iframe的src,以更改「 www.EXAMPLE.com「轉換爲基於頁面位置的另一個URL。
看一看這個問題:http://stackoverflow.com/questions/3890375/javascript-event -handler-in-asp-net – 2010-10-15 18:53:06
它仍然沒有給我一個關於如何在我的代碼背後與iframe交談的答案..... – Etienne 2010-10-15 18:56:30