简体   繁体   English

在Javascript弹出窗口中与用户的交互

[英]Interaction with user in a Javascript Popup

there are 2 main functions on a website that I'm trying to build: 'Search users' and 'interact with users' 我要建立的网站上有两个主要功能:“搜索用户”和“与用户互动”

Search results display usernames, and I would like to POPUP a box similar to lighbox where the poped up users profile would display. 搜索结果显示用户名,我想弹出一个类似于lighbox的框,其中会显示弹出的用户个人资料。 Within it I need to have several action buttons, like block, add to favorites, and separate tab for messaging. 在其中,我需要有几个操作按钮,例如“阻止”,“添加到收藏夹”以及用于消息传递的单独选项卡。

Can all of the above be displayed and refreshed within a javascript popup? 以上所有内容都可以在javascript弹出窗口中显示和刷新吗? What plugins/approach would you recommend? 您会推荐什么插件/方法?

Essentially, anything can be done inside a lightbox, because a lightbox is only a partially transparent image overlay with html content positioned above the image. 本质上,任何事情都可以在灯箱内完成,因为灯箱只是部分透明的图像叠加层,而html内容位于图像上方。 What's more, there are plenty of lightbox plugins for jquery (almost too many lightbox plugins, really). 而且,jquery有很多灯箱插件(实际上几乎有太多的灯箱插件)。

But before you proceed any further, you might want to start planning on creating a javascript disabled fallback for when you cannot display the lightbox. 但是,在继续进行操作之前,您可能要开始计划在无法显示灯箱的情况下创建禁用了JavaScript的后备广告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM