jquery - 如何通过 facebook 之类的插件在 jquery 中获取鼠标单击事件?

标签 jquery facebook jquery-selectors facebook-like

在这里,我在点击该 iframe 后在 iFrame 中调用类似 facebook 的插件,我想在 DOM 内容中执行一些脚本。

这里是类似 facebook 的 iframe 插件的代码

<iframe id="test" src="http://www.facebook.com/plugins/like.php? 
       href=http://yoururl.com/&amp;
       layout=button_count&amp;
       show_faces=false&amp;
       width=50&amp;
       action=like&amp;
       colorscheme=light&amp;
       height=21" 
       scrolling="no" frameborder="0" 
       style="border:none; overflow:hidden; width:50px;  
              height:21px;" 
       allowTransparency="true">

最佳答案

已回答here .

总结:可以为iframe绑定(bind)点击事件,但不能跨站。

关于jquery - 如何通过 facebook 之类的插件在 jquery 中获取鼠标单击事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6120178/

相关文章:

jQuery - .not() 不能与 .text() 一起使用

jquery - 如何使用 jQuery 选择并替换整个页面

php - 如何使用 php 在 facebook 中保存用户的个人资料图片

facebook - 有没有办法删除您的 Facebook 应用程序的用户?

jquery - 选择器选择第三个列表项?

jquery addClass 在负载上工作,但不是通过单击

javascript - 单击按钮后禁用文本区域

jquery - jqgrid 内联编辑仅在选定的单元格上进行,而不是在行上

javascript - 捕获 iframe jQuery 中的所有事件并复制

facebook - reactjs 和 Facebook API : Getting error 'FB' is not defined no-undef