87,910
社区成员
发帖
与我相关
我的任务
分享
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
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 'index.jsp' starting page</title>
<script type="text/javascript" src="./jquery.js"></script>
<style>
<!--
.menuConment{ color:red; font-size:24px; text-decoration:none;}
-->
</style>
<script type="text/javascript">
$(document).ready(function(){
$("#top a").addClass("menuConment");
})
</script>
</head>
<body>
<div id="top">
<div><a href="">php</a></div>
<div><a href="">jquery</a></div>
</div>
</body>
</html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>