<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<title>My JSP 'sj7.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">
$(document).ready(function(){
$("h1").click(function(){
$("h1").css("color","pink").next().css("display","block")
$("li").addClass(".first").css("color","red");
});
});
$(function(){
var ls=$("li");
ls.mouseover(function(){
$(this).css("background","blue");
});
ls.mouseout(function(){
$(this).css("background","");
});
});
</script>
<style type="text/css">
#list{
width: 200px;
height: 200px;
border: 1px solid red;
}
#list{padding:5px;}
#list1{display:none;}
</style>
</head>
<body>
<div id="list"><h1>新手指南</h1>
<div id="list1"><ul>
<li id=".first">会员注册</li>
<li>订阅更新</li>
<li>用户协议</li>
<li>常见问题</li>
</ul>
</div>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'kh4.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
$(document).ready(function(){
alert("学习JQuery编程,我已卖出了第一步");
});
</script>
</head>
<body>
</body>
</html>
alert("我编写的第一个JQuery程序!!!");
});
</script>
</head>
<body>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sj2.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
$(document).ready(function(){
$("h1").click(function(){
$("p").css("font-size","12px");
$("p").css("color","pink");
$("h1").css("font-size","36px");
$("h1").css("color","red");
$("#ha").css("padding","10px");
var height=null;
height=$(this).height();
$(this).height("60");
});
});
</script>
</head>
<body>
<div id="ha">
<h1>你是人间的四月天</h1>
<p>笑响亮了四面风</p>
<p>轻灵在春的光艳中交舞着变</p>
<p>你是四月早天里的云烟</p>
<p>黄风吹着风的软</p>
<div id="xs()">
</div>
<img src="img/0.jpg"></img>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sj3.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
$(document).ready(function(){
$("#dj").click(function(){
$(this).css("border","3px solid red");
});
});
</script>
<style>
#box a{ display:block; z-index:1000; width:449px; height:399px;}
</style>
</head>
<body>
<div id="box" style="width:451px; height:401px;">
<img id="dj" src="img/s.jpg" width="450px" height="400px" ></img>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sj4.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
$(document).ready(function(){
$("h1").click(function(){
$("h1").css("background-color","pink").next().css("display","block");
});
});
</script>
<style type="text/css">
h1{padding:5px;}
ul{display:none;}
</style>
</head>
<body>
<h1>如何使用叮当网购物</h1>
<ul>
<li>方法一:注册成为网站会员</li>
<li>方法二:使用合作企业账号登录,如新浪微博,QQ,人人网账户</li>
</ul>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sj5.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
$(document).ready(function(){
$("h1").click(function(){
$(function(){
var dom=document.getElementById("my");
var str=$(dom).text();
alert(str);
});
});
});
</script>
<style type="text/css">
#my{display:none;}
</style>
</head>
<body>
<h1>请为我们的服务做出评价</h1>
<div id="my">非常满意</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'sj6.jsp' starting page</title>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<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">
//$(document).ready(function(){
$(function(){
$("#all").click(function(){
var dom=document.getElementById("all");
if (dom.checked) {
alert('操作成功,感谢你的使用');}
});
});
//});
</script>
</head>
<body>
<input id="all" type="checkbox" value="5"/>
<a>接收服务条款</a>
</body>
</html>