问题描述
我想通过使用弹出窗口来完成 lifestream 和其他网站对 oauth 身份验证所做的事情.他们打开一个弹出窗口,不知何故没有被弹出窗口阻止程序阻止,并使他们的网站变灰.然后在允许 oauth 访问时,它说重定向回原始站点并终止弹出窗口并将站点恢复为正常颜色.我将如何去做这样的事情?如果我发布了任何内容,我就不应该没事,因为所有这些帐户都是假的.
I'm would like to do what lifestream and other sites have done with oauth authentication by using a pop up window. They open a popup window which somehow wasn't blocked by the popup blocker and grey out their site. Then upon allowing oauth access it says redirecting back to original site and kills the popup and returns the site to normal color. How would I go about doing something like this? If I posted anything I shouldn't have its alright because all these accounts are bogus anyway.
推荐答案
问题是,这不是弹窗.这就是通常所说的灯箱.一个 js 脚本,如 fancybox、lightbox 和许多其他脚本.您基本上可以在绝对位置和高 z-index 的 div 中打开一个 iframe,然后在下面放置一个叠加层.
The thing is, this is not a pop-up window. It's what usually called lightbox. A js script like fancybox, lightbox and many others. You basically can open an iframe in a div with a absolut position and high z-index, then put an overlay underneath.
这篇关于执行 oauth 时如何创建弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)