国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTA > 正文

hta實(shí)現(xiàn)涂鴉效果代碼

2020-01-31 15:42:59
字體:
供稿:網(wǎng)友
復(fù)制代碼 代碼如下:

<html>     
<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) 可以在線生成一個(gè)在桌面上自動(dòng)繪畫的應(yīng)用程序。
只需要你發(fā)揮想象繪制一副想要的圖案,然后點(diǎn)擊下載按鍵就可以得到一個(gè)很小的moron_scratch.exe的程序。
雙擊運(yùn)行它,就能看到你的鼠標(biāo)在桌面上自動(dòng)畫了起來 :)
地址
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 永嘉县| 静乐县| 永顺县| 清苑县| 且末县| 会理县| 仙游县| 钦州市| 灵武市| 达孜县| 西畴县| 孟州市| 武功县| 云龙县| 平南县| 邵东县| 上林县| 西乡县| 盖州市| 皮山县| 广安市| 余干县| 寿阳县| 巴中市| 和硕县| 丹阳市| 札达县| 北票市| 西峡县| 涞源县| 涿州市| 铜鼓县| 开江县| 荆门市| 米易县| 昭通市| 宜宾县| 蓬安县| 家居| 邛崃市| 澎湖县|