hta实现涂鸦效果代码

发布时间:2022-04-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了hta实现涂鸦效果代码脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
复制代码 代码如下:

<htML>&nbsp;    
<head>     
<hta:APPLICATION     
CAPTION="no"     
SCROLL="no"     
SHOWINTASKBAR="no"     
INNERBORDER="no"     
CONTEXTMENU="no"     
BORDER="none"     
SINGLeiNSTANCE="yes"     
WINDOWstatE="maximize"     
>     
<tITle></title>     
<script>     
VAR timer = 100;     
var randDiv = new Array(100);     
window.onload = function()     
{     
     for(var i = 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();     
}     
function Fun()     
{     
     for(var i = 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);     
}     
function GetRandomColor()     
{     
     var r = Math.floor(Math.random() * 255).toString(16);     
     var g = Math.floor(Math.random() * 255).toString(16);     
     var b = 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>

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

脚本宝典总结

以上是脚本宝典为你收集整理的hta实现涂鸦效果代码全部内容,希望文章能够帮你解决hta实现涂鸦效果代码所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:htahta