点击弹出式通知(谢谢您的留言) [英] On-Click Pop-up Notification (Thank you message)

查看:62
本文介绍了点击弹出式通知(谢谢您的留言)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要开发一个联系表单,当表单提交后,该表单会弹出一个消息,提示谢谢,我们会尽快与您联系".

我该如何使用php?

我已经用完了html和php,剩下的就是弹出的感谢消息.我不知道该怎么办或如何去做.

我需要一些帮助.

谢谢.

Hello,

I need to develop a contact form that will bring up a pop-up message saying "Thank you, we''ll get back to you soon" when the form is submitted.

How do i do this with php?

I''m done with the html and php, all that remains is the pop-up thank you message. I don''t know what to do or how to go about this.

I kindly need some assistance.

Thank you.

推荐答案

这听起来像是一个愚蠢的问题,但是您真的需要弹出窗口吗?
为什么不直接转到谢谢"页面-它与正常"网站行为保持一致,而对用户的干扰却少得多.

问题在于,当您弹出一个弹出窗口时,用户必须先单击它,然后才能执行其他任何操作-大多数时候这是PITA.用户确实需要 确认您感谢他们吗?

请改用页面-它不会阻止"浏览器继续执行其他操作...
This may sound like a silly question, but do you really need a pop-up?
Why not just direct to a "Thank you" page - it''s more in keeping with "normal" website behaviors, and a lot less intrusive to the user.

The problem is that when you bring up a pop-up, the user has to click on it before they can do anything else - which is a PITA most of the time. It is really necessary that the user acknowledge that you thanked them?

Use a page instead - it doesn''t "block" the browser from continuing with other things...


弹出式窗口很简单,但通常是不好的.许多用户可以使用某些浏览器功能/插件来阻止弹出窗口.由于广告客户滥用弹出式广告,这是有充分理由的.此外,由于创建新的浏览器窗口涉及某些浏览器特定的功能(在选项卡和单独的顶级窗口之间进行选择是其中之一),因此您的控制力会有所限制.

我宁愿建议jQuery对话框,它仅模仿单个页面上的弹出对话框的行为,而实际上不创建任何弹出窗口: http: //jqueryui.com/dialog/ [ ^ ].

首先,查看该演示的工作原理.

此技术和设计有很多变体.另请参见:

http://www.jacklmoore.com/notes/jquery-modal-tutorial/ [ ^ ],
http://dinbror.dk/bpopup/ [ ^ ].

您可以用来查找一些解决方案的另一个关键字是: http://bit.ly/1bp65J8 [
Pop-up windows are easy but generally bad. Many users could use some browsers features/plug-ins to block pop-ups; and they do it for a good reason, due to abuse of pop-ups by advertisers. Besides, as creation of a new browser windows touches some browser-specific features (the choice between a tab and a separate top-level window is one of them), you would have somewhat limited control.

I would rather advise jQuery dialog, which only mimics the behavior of a pop-up dialog on a single page, but does not actually create any popups: http://jqueryui.com/dialog/[^].

First of all, see how the demo works.

There are many variations of this technique and design. Please see also:

http://www.jacklmoore.com/notes/jquery-modal-tutorial/[^],
http://dinbror.dk/bpopup/[^].

Another keyword you can use to find some solutions would be: http://bit.ly/1bp65J8[^].

—SA


这篇关于点击弹出式通知(谢谢您的留言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆