a链接事件点击函数

<script>
<!--
function ChangeStarCommunity(o){
var o = document.getElementById(o);
if( document.all && typeof( document.all ) == "object" ) //IE
{
o.fireEvent("onclick");
o.click();
}
else
{
var e = document.createEvent('MouseEvent');
e.initEvent('click',false,false);
o.dispatchEvent(e);
}
}
//-->
</script> 鼠标滑过调用方式:onmouseover="ChangeStarCommunity(this.id);"
上一篇:Spring Boot 学习笔记--整合Thymeleaf


下一篇:python基础-类的继承