创建iframe,例如facebook或twitter

| 我正在尝试创建一个类似Facebook和Twitter的弹出窗口。当您在除facebook.com之外的其他网站上单击Facebook的“赞”按钮并且未登录时,它会打开一个弹出窗口,您可以登录,然后在单击“登录”时关闭,返回对您单击的喜欢按钮的网站进行身份验证。 与Twitter相同。 任何想法? 他们的代码如下: 这些示例都指向我工作的网站。 推特:
<iframe frameborder=\"0\" scrolling=\"no\" src=\"http://platform.twitter.com/widgets/tweet_button.html?counturl=http://www.cromaz.com&amp;count=horizontal&amp;via=mundocromaz&amp;text=Cromaz,%20rede%20social%20pra%20vizinhos!%20100%25%20brasileira!&amp;url=http://www.cromaz.com&amp;\" style=\"width:105px; height:20px; overflow:hidden; position:relative; left:3px;\" />
脸书:
<iframe src=\"http://www.facebook.com/plugins/like.php?locale=pt_BR&amp;href=http://www.facebook.com/pages/Cromaz/139676989421131&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21;\"  scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:100px; height:21px; position:relative; left:6px;\" />
    
已邀请:
使用您的解决方案,我添加了一些修改: 对于Twitter的“赞”按钮:
<iframe allowtransparency=\"true\"
src=\"http://platform.twitter.com/widgets/tweet_button.html?counturl=http://www.divinersystems.com
        &amp;count=horizontal
        &amp;text=PIC%20Configuration%20Tool
        &amp;url=http://www.divinersystems.com\"
_mce_src=\"http://platform.twitter.com/widgets/tweet_button.html\"
style=\"border: medium none; overflow: hidden; width: 80px; height: 21px;\"
_mce_style=\"border: none; overflow: hidden; width: 80px; height: 21px;\" frameborder=\"0\" scrolling=\"no\">
</iframe>
对于Facebook Like Button:
</iframe> allowtransparency=\"true\"
src=\"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.divinersystems.com
        &amp;layout=button_count
        &amp;show_faces=false
        &amp;width=400
        &amp;action=like
        &amp;font
        &amp;colorscheme=light
        &amp;height=21\"
_mce_src=\"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.divinersystems.com
        &amp;layout=button_count
        &amp;show_faces=false
        &amp;width=400
        &amp;action=like
        &amp;font
        &amp;colorscheme=light
        &amp;height=21\"
style=\"border: medium none; overflow: hidden; width: 400px; height: 21px;\"
_mce_style=\"border: none; overflow: hidden; width: 400px; height: 21px;\"
frameborder=\"0\" scrolling=\"no\">
</iframe>
为您的网站替换: www.divinersystems.com->您的网站 PIC%20Configuration%20Tool->您的文本(%20是空格键) 如果您使用Joomla 1.6创建类型为“自定义HTML”的新模块,请在“显示标题”下为其指定标题,然后按“隐藏”,在希望看到它的位置选择“菜单分配”,然后粘贴修改后的代码(当您处于“切换编辑器”模式时)并保存。 请注意,如果代码消失,请转到-> \“内容\”-> \“选项\”-> \“文本过滤器”->选择您的用户类型,然后将\“过滤器类型\”更改为\“无过滤器\ ”。 我希望这会有所帮助!     
使用http://fancybox.net/。 应该完美满足您的需求。     

要回复问题请先登录注册