[align=left][/align]<%@ page language="java" contentType="text/html;charset=gbk"
pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort();
String path = basePath + request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=path%>">
<title>自定义测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link type="text/css" rel="stylesheet" href="js/jquery/jquery-ui-1.9.2.custom.css">
<script src="js/jquery/jquery-1.8.3.js"></script>
<script src="js/jquery/jquery-ui-1.9.2.custom.js"></script>
<script src="js/jquery/jquery.ui.core.js"></script>
<script src="js/jquery/jquery.ui.widget.js"></script>
<script src="js/jquery/jquery.ui.mouse.js"></script>
<script src="js/jquery/jquery.ui.draggable.js"></script>
<script src="js/jquery/jquery.ui.position.js"></script>
<script src="js/jquery/jquery.ui.resizable.js"></script>
<script src="js/jquery/jquery.ui.dialog.js"></script>
<script type="text/javascript">
$(function() {
$("#button").click(function(){
$("#dialog").dialog({
autoOpen:true,
buttons:{
"打开":function(){
alert("打开");
},
"关闭":function(){
$(this).dialog("close");
}
},
hide:"slide",
modal:true,
title:"对话框"
});
});
});
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<!-- middle-search-begin -->
<td height="460" align="left" valign="top" id="gnlb_gis">
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0"
style="background-color: #C9E0EE; background-repeat: repeat-x; background-image: url(images/wg.gif)">
<tr>
<td align="center" valign="top">
<input id="button" type="button" value="测试"></input>
<div id="dialog">
<s:textfield></s:textfield>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort();
String path = basePath + request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=path%>">
<title>自定义测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link type="text/css" rel="stylesheet" href="js/jquery/jquery-ui-1.9.2.custom.css">
<script src="js/jquery/jquery-1.8.3.js"></script>
<script src="js/jquery/jquery-ui-1.9.2.custom.js"></script>
<script src="js/jquery/jquery.ui.core.js"></script>
<script src="js/jquery/jquery.ui.widget.js"></script>
<script src="js/jquery/jquery.ui.mouse.js"></script>
<script src="js/jquery/jquery.ui.draggable.js"></script>
<script src="js/jquery/jquery.ui.position.js"></script>
<script src="js/jquery/jquery.ui.resizable.js"></script>
<script src="js/jquery/jquery.ui.dialog.js"></script>
<script type="text/javascript">
$(function() {
$("#button").click(function(){
$("#dialog").dialog({
autoOpen:true,
buttons:{
"打开":function(){
alert("打开");
},
"关闭":function(){
$(this).dialog("close");
}
},
hide:"slide",
modal:true,
title:"对话框"
});
});
});
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<!-- middle-search-begin -->
<td height="460" align="left" valign="top" id="gnlb_gis">
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0"
style="background-color: #C9E0EE; background-repeat: repeat-x; background-image: url(images/wg.gif)">
<tr>
<td align="center" valign="top">
<input id="button" type="button" value="测试"></input>
<div id="dialog">
<s:textfield></s:textfield>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>