[英]popup message box using jquery
我是JQuery
新手。 我需要使用JQuery
彈出消息框。 請幫忙怎么做或者請給我鏈接如何獲得這個。
我正在使用梅西,但我無法得到所需的結果。
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" href="files/messi.min.css" />
</head>
<body>
<script src="files/messi.min.js">
new messi('This is a message with Messi.', { title: 'Title' });
</script>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="click" />
</div>
</form>
</body>
</html>
您可以使用jQuery Ui 輕松完成它 。
HTML
<a href="#" id="contactUs">Contact Us</a>
<div id="dialog" title="Contact form">
<p>appear now</p>
</div>
您需要初始化Dialog
$(function() {
// this initializes the dialog (and uses some common options that I do)
$("#dialog").dialog({autoOpen : false, modal : true, show : "blind", hide : "blind"});
// next add the onclick handler
$("#contactUs").click(function() {
$("#dialog").dialog("open");
return false;
});
});
我從這里得到了這個
希望這會有所幫助。祝你好運。
我有同樣的問題,並通過使用Ajax Control Toolkit
彈出消息框解決。
你可以在這里找到ModelPopupExtender
一個例子: http : ModelPopupExtender
你可以自定義它。 並且還可以通過代碼隱藏手動彈出消息框。
此致,Bengi。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.