1 <%@ Pagelanguage= "Java"Import= "java.util.*"pageencoding= "UTF-8"%>2 <%@ taglibprefix= "C"URI= "Http://java.sun.com/jsp/jstl/core" %>3 <%4 StringPath= Request.getcontextpath ();5 String BasePath= Request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";6 %>7 8 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en">9 <HTML>Ten <Head> One <Basehref= "<%=basePath%>"> A - <title>My JSP ' jsp2.jsp ' starting page</title> - the <Metahttp-equiv= "Pragma"content= "No-cache"> - <Metahttp-equiv= "Cache-control"content= "No-cache"> - <Metahttp-equiv= "Expires"content= "0"> - <Metahttp-equiv= "keywords"content= "Keyword1,keyword2,keyword3"> + <Metahttp-equiv= "description"content= "This is my page"> - <!-- + <link rel= "stylesheet" type= "Text/css " href= "Styles.css" > A - at <Scripttype= "Text/javascript"src= "<c:url value= '/jquery-1.5.1.js '/>"></Script><!--tags, import the c tag library - - <Scripttype= "Text/javascript"> - $ (function () { - $ ("#d1"). Hover ( - function () {//mouse enters element - $ ("#d1"). Text ("1"); in }, - function () {//mouse left element to $ ("#d1"). Text ("2"); + } - ) the }); * $ </Script>Panax Notoginseng <styletype= "Text/css"> - . xxx{ the border:1px solid red; + width:100px; A height:100px; the } + </style> - </Head> $ $ <Body> -This is my JSP page.<BR> - <DivID= "D1"class= "XXX">Nihao</Div> the </Body> - </HTML>
"JQuery" mouse touch button after changing picture