<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>豪情-js事件测试</title>
<style>
div{margin:5px auto;}
p{margin:0 auto;width:400px;}
#txt1{width:400px;font-size:14px;padding:2px 5px;}
#txt2{width:400px;height:30px;background:#333;color:#fff;padding:5px;}
input{width:400px;padding:5px 10px;}
</style>
</head>
<body>
<div id="txt2"
onmouseover="handle(event)"
></div>
<p><textarea name="" id="txt1" cols="30" rows="10">
本文转自豪情博客园博客,原文链接:http://www.cnblogs.com/jikey/archive/2010/05/08/1730398.html,如需转载请自行联系原作者