HTA implements graffiti effect code _hta

Source: Internet
Author: User
Copy Code code as follows:

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>
<body>
</body>

The Moujon Graffiti Board (Moron Scratch) can generate an application that automatically paints on the desktop online.
Just use your imagination to draw a desired pattern, and then click the Download button to get a very small Moron_scratch.exe program.
Double-click to run it, you can see your mouse on the desktop automatically draw up:)
Address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.