浮动窗体

<%@ page language="java" import="java.util.*" pageEncoding="GBK"
	contentType="text/html; charset=GBK"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/public.js"></script>
  </head>
  
  <body>    		
   		<div id="aa0" style="width:100px;height:100px;background-color:#ff0000;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa0", 100, 100, "left", "none", 10, 50, 100, 100);
		</script>
		<div id="aa1" style="width:100px;height:100px;background-color:#ff0000;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa1", 100, 100, "left", "updown", 10, 50, 100, 100);
		</script>
		<div id="aa2" style="width:100px;height:100px;background-color:#ff00ff;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa2", 100, 100, "left", "auto", 100, 50, 10, 100);
		</script>
		
		<div id="aa3" style="width:100px;height:100px;background-color:#ffff00;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa3", 100, 100, "left", "leftright", 10, 50, 100, 10);
		</script>
		<div id="aa4" style="width:100px;height:100px;background-color:#fff000;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa4", 100, 100, "right", "updown", 10, 30, 100, 100);
		</script>
		
		<div id="aa6" style="width:100px;height:100px;background-color:#f00000;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa6", 100, 100, "right", "leftright", 10, 50, 10, 100);
		</script>
		
		<div id="aa5" style="width:100px;height:100px;background-color:#bbbbbb;position:absolute;"></div>
		<script type="text/javascript">
			NYFloatWindow.create("aa5", 100, 100, "right", "auto", 0, 0, 0, 0);
		</script>
</body>
</html>

 

你可能感兴趣的:(js)