jquery.alerts jquery.bolckUI
来源:互联网 发布:局域网代理上网软件 编辑:程序博客网 时间:2024/05/25 18:11
1、改变原始的alert
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery AlertDialogs<</title>
<script src="_assets/js/jquery.js"type="text/javascript"></script>
<script src="_assets/js/jquery.ui.draggable.js"type="text/javascript"></script>
<script src="_assets/js/jquery.alerts.js"type="text/javascript"></script>
<link href="_assets/css/jquery.alerts.css"rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript">
$(document).ready(function() {
$("#alert1").click(function() {
jAlert('error', 'This is the error dialog box with some extratext.', 'Error Dialog');
});
$("#alert2").click(function() {
jAlert('warning', 'This is the warning dialog along with some<u>html</u>.','Warning
Dialog');
});
$("#alert3").click(function() {
jAlert('success', 'This is the success dialog.', 'SuccessDialog');
});
$("#alert4").click(function() {
jAlert('info', 'This is the info dialog.', 'Info Dialog');
});
$("#confirm").click(function() {
jConfirm('Can you confirm this?', 'Confirmation Dialog',function(r) {
jAlert('success', 'Confirmed: ' + r, 'Confirmation Results');
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
Dialog');