<!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=gb2312" />
<meta name="keywords" content="AJAX Asynchronous JavaScript + XML Asynchronous Javascript And XML DOM Document Object Mode CSS CSS2 CSS3" />
<meta name="description" content="AJAX Asynchronous JavaScript + XML Asynchronous Javascript And XML DOM Document Object Mode CSS CSS2 CSS3" />
<meta name="Author" content="Audi" />
<meta name="Author" content="http://audi.tw" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<link href="font.css" rel="stylesheet" type="text/css" />
<title>setAttribute</title>
<style type="text/css">
li {list-style:none;}
</style>
<script type="text/javascript">
<!--
function mOver(){
var obj=document.getElementById('flex');
obj.onmouseover=function(){alert('onmouseover');}
}
//-->
</script>
</head>
<body onload="">
088-setAttributeb-onmouseover.html
<h3>setAttribute()</h3>
<p>本例展示使用 setAttribute() onmouseover 问题。</p>
<p>
<input type="button" name="Submit" value="将图片加上onmouseover功能" onclick="mOver();" />
</p>
<p> <span id="flex"><img src="P32.m.jpg" width="360" height="270" /></span></p>
</body>
</html>