总是在弹出窗口顶部

总是在弹出窗口顶部

本文介绍了总是在弹出窗口顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有一个弹出窗口,该窗口将覆盖当前窗口,以便用户可以来回单击,而弹出窗口不会在其后消失.弹出窗口也必须是可移动的.我尝试了一些伪弹出窗口,例如Zebra.它们具有很好的模式弹出窗口,但是它们的显示不可移动,并且仅限于当前屏幕.

I need to have a popup window that will overlay a current window such that the user can click back and forth without the popup disappearing behind it. The popup must also be movable. I've tried a few pseudo popups like Zebra. They have a good modal popup, but their displays are not movable and are limited to the current screen only.

想象:用户正在读取一条记录,并希望弹出更多信息.然后,用户希望在主屏幕上更改记录并调出第二个弹出窗口,以便两个弹出窗口同时显示-依此类推.用户可能希望转到另一个主屏幕并进一步弹出以作进一步考虑,以便可能有多个独立于任何主屏幕且始终位于顶部的弹出窗口(我意识到彼此之间不是彼此的).

Imagine: The user is reading a record and wants to popup more information. Then the user wants to change records on the main screen and bring up a second popup so the two popups display at the same time - and so forth. The user may want to go to another main screen and popup more for further consideration such that there could be multiple popups independent of any main screen and always on top (not of each other, I realize).

如果有问题,我将在Windows 7上使用JQuery以及PHP和MySQL.

In case it matters, I'm on Windows 7 using JQuery along with PHP and MySQL.

推荐答案

听起来像您将要使用"jQuery查询"对话框( http://jqueryui.com/dialog/#default )来创建您的弹出窗口".使用JQuery,您可以根据需要创建尽可能多的弹出"窗口.

Sounds like you are going to want to use the JQuery Dialog Box (http://jqueryui.com/dialog/#default) to create your "popup". With JQuery you'll be able to crete as many "popup" windows as you want.

困难在于更改主窗口",您必须加载该主窗口,而不是切换页面以保留所有弹出窗口.否则,您将需要存储存在的弹出窗口及其所有信息,以便在切换主窗口时重新加载它们.

The difficulty will be "changing the main window" which you would have to load in instead of switching pages in order to keep all your popups. Otherwise you would need to store what popups exist, with all their information in order to re-load them when you switch main windows.

当然,如果您通过"JQuery对话框"执行弹出式窗口,则始终将其限制在浏览器"窗口中.

And of course, your popups if you do them through JQuery Dialog Box will always be limited to the Browser window.

这篇关于总是在弹出窗口顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 18:31