javascript php中的灯箱在弹出窗口中显示信息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15338840/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 00:26:54  来源:igfitidea点击:

Lightbox in php to show information in pop-up

phpjavascriptpopuplightbox

提问by MGR

I'm Developing an application, that have several Pages for the application. And In it i thought to Say one information in it, it the user like to proceed means they can continue or can drop that..

我正在开发一个应用程序,该应用程序有多个页面。我想在其中说一个信息,用户喜欢继续意味着他们可以继续或可以放弃它..

Now i have query like,..

现在我有这样的查询,..

<input type="Button" onclick="window.open(myPage.php)" target="_blank" value="Guess It..!"/>

It opens a new page for showing the Data,.. Its looking good. But just now i came to knew about the Lightbox functionality in PHP with javascript. I Heard that it will perform my process in the Same page without disturbing the Previous one, it came as pop-up and after completing its Process we can close and continue our previous process..

它打开一个显示数据的新页面,.. 看起来不错。但刚刚我开始了解 PHP 中使用 javascript 的 Lightbox 功能。我听说它会在同一页面中执行我的流程而不会干扰上一个流程,它以弹出窗口的形式出现,在完成其流程后,我们可以关闭并继续我们之前的流程..

I Hope i will help to my user to work easily without any confusion with the New Tab Open option, now i'm searching for the lightbox Tutorial, anybody suggest me for the Best tutorial or examples..

我希望我能帮助我的用户轻松工作,而不会与“新标签页打开”选项混淆,现在我正在寻找灯箱教程,任何人都向我推荐最佳教程或示例。

回答by Kasyx

I think you shuuld look at Fancybox. Good documentation, easy to use, you can dynamic load content, images etc.

我想你应该看看Fancybox。良好的文档,易于使用,可以动态加载内容,图像等。

There is also tutorialand documentation.

还有教程文档

回答by Abbas

http://fancybox.net/

http://fancybox.net/

Download and use this fancy box..This will be easy for you to implement and customize based on reqs.

下载并使用这个花哨的盒子..这将很容易让你实现和基于 reqs 定制。

For using it, refer http://fancybox.net/howto.

要使用它,请参阅http://fancybox.net/howto

Hope it helps.

希望能帮助到你。