<!DOCTYPE html>
<html onclick="star(event);" >
<head>
<title></title>
<script type="text/javascript" language="javascript">
function star(e){
var obj=document.createElement("img");
obj.src="xx.gif";
document.body.appendChild(obj);
var w=Math.floor(Math.random()*80+20);
obj.width=w;
var X=e.clientX;
var Y=e.clientY;
obj.style.position="absolute";
obj.style.top=Y+"px";
obj.style.left=X+"px";
}
</script>
</head>
<body >
</body>
</html>
【JS】满天都是小星星
最新推荐文章于 2020-03-21 19:15:13 发布
4858

被折叠的 条评论
为什么被折叠?



