jquery为js做的鼠标点击事件
2012-08-19 16:11
696 查看
<%@ 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 'js3.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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script src="js/jquery-1.2.6.js"></script>
<script type="text/javascript">
$(function(){
$("input:first").hover(function(){
$(this).css("font-size","38px")
},function(){
$(this).css("font-size","14px")
});
});
</script>
</head>
<body>
测试:<input type="text" value="I love you"/>
</body>
</html>
<%
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 'js3.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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script src="js/jquery-1.2.6.js"></script>
<script type="text/javascript">
$(function(){
$("input:first").hover(function(){
$(this).css("font-size","38px")
},function(){
$(this).css("font-size","14px")
});
});
</script>
</head>
<body>
测试:<input type="text" value="I love you"/>
</body>
</html>
相关文章推荐
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- 使用JS或jQuery模拟鼠标点击a标签事件
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- 使用JS或jQuery模拟鼠标点击a标签事件代码
- js 模拟鼠标点击事件
- js监听鼠标点击和键盘点击事件并自动跳转页面
- JS鼠标3次点击事件实现代码及扩展思路
- js_鼠标点击事件:简单全选功能
- JS之鼠标点击事件
- 【js & jquery】遮罩层实现禁止a、span、button等元素的鼠标事件
- 使用jQuery 模拟鼠标点击a标签事件 实现定位
- jquery如何在页面加载完成后模拟出一个鼠标点击事件?
- JS鼠标事件(监听鼠标点击/释放,鼠标悬停/离开等)
- 为在js jquery中添加的标签添加点击事件
- 一周乱弹(1,摸态框增加纵向滚动条2,jQuery 鼠标点击事件3,通过ajax实现批量导出。4,windows查询占用某个端口号程序并杀死其进程)
- js 鼠标点击事件及其它捕获
- screen,client,page三种确定鼠标坐标的区别和原生JS事件写法,区别于Jquery的$.on(x,y);和$.click()