新闻动态

hta实现涂鸦效果代码

发布日期:2021-12-23 00:22 | 文章来源:脚本之家
复制代码 代码如下:

<html>
<head>
<hta:APPLICATION
CAPTION="no"
SCROLL="no"
SHOWINTASKBAR="no"
INNERBORDER="no"
CONTEXTMENU="no"
BORDER="none"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
>
<title></title>
<script>
vartimer=100;
varrandDiv=newArray(100);
window.onload=function()
{
for(vari=0;i<randDiv.length;i++)
{
randDiv[i]=document.createElement("DIV");
randDiv[i].style.cssText="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
randDiv[i].style.position="absolute";
randDiv[i].style.background=GetRandomColor();
document.body.appendChild(randDiv[i]);
}
Fun();
}
functionFun()
{
for(vari=0;i<randDiv.length;i++)
{
randDiv[i].style.top=Math.floor(Math.random()*window.screen.height);
randDiv[i].style.left=Math.floor(Math.random()*window.screen.width);
randDiv[i].style.width=Math.floor(Math.random()*100);
randDiv[i].style.height=Math.floor(Math.random()*100);
randDiv[i].style.background=GetRandomColor();
}
setTimeout("Fun()",timer);
}
functionGetRandomColor()
{
varr=Math.floor(Math.random()*255).toString(16);
varg=Math.floor(Math.random()*255).toString(16);
varb=Math.floor(Math.random()*255).toString(16);
r=r.length==1?"0"+r:r;
g=g.length==1?"0"+g:g;
b=b.length==1?"0"+b:b;
return"#"+r+g+b;
}
</script>
</head>
<body>
</body>
</html>

木容涂鸦板(MoronScratch)可以在线生成一个在桌面上自动绘画的应用程序。
只需要你发挥想象绘制一副想要的图案,然后点击下载按键就可以得到一个很小的moron_scratch.exe的程序。
双击运行它,就能看到你的鼠标在桌面上自动画了起来:)
地址

版权声明:本站文章来源标注为YINGSOO的内容版权均为本站所有,欢迎引用、转载,请保持原文完整并注明来源及原文链接。禁止复制或仿造本网站,禁止在非www.yingsoo.com所属的服务器上建立镜像,否则将依法追究法律责任。本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。

相关文章

实时开通

自选配置、实时开通

免备案

全球线路精选!

全天候客户服务

7x24全年不间断在线

专属顾问服务

1对1客户咨询顾问

在线
客服

在线客服:7*24小时在线

客服
热线

400-630-3752
7*24小时客服服务热线

关注
微信

关注官方微信
顶部