You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.2 KiB

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="/test/jquery-1.6.4.js"></script>
<script type="text/javascript" src="/test/JQ/ui/js/jquery-ui-1.8.16.custom.min.js"></script>
<link type="text/css" rel="stylesheet" href="/test/JQ/ui/css/ui-lightness/jquery-ui-1.8.16.custom.css"/>
<script>
$(function() {
$("#btn").click(function() {
$("#pp").text("aaaaaaaaaaaaaaaaaaaaaaa\naaaaaaaaaaaaaaaa");
$("#dialog").dialog({
height:240,
modal:true
});
$("#dialog").dialog();
});
});
</script>
</head>
<body>
<input id="btn" type="button" onclick="onclick" value="btn1" />
<div id="dialog" title="Basic dialog">
<p id="pp">This is the default dialog which is useful for displaying information. The dialog window can be moved</p>
</div>
</body>
</html>