Sithdarth
06-13-2004, 12:56 AM
Now I have a hard time making decisions; so when I ended up downloading 60 different wallpapers I had a bit of a problem. I just couldn't pick one. So remembering something I read in Maximum PC and my JavaScript book. I formulated a plan. I would simply make my PC load a random background every 2 minutes. I would post a pic but it wouldn't look special. Instead you get to see the code.
<html>
<head>
<title>
</title>
<script language="JavaScript">
var b60=new Image()
var b59=new Image()
var b58=new Image()
var b57=new Image()
var b56=new Image()
var b55=new Image()
var b54=new Image()
var b53=new Image()
var b52=new Image()
var b51=new Image()
var b50=new Image()
var b49=new Image()
var b48=new Image()
var b47=new Image()
var b46=new Image()
var b45=new Image()
var b44=new Image()
var b43=new Image()
var b42=new Image()
var b41=new Image()
var b40=new Image()
var b39=new Image()
var b38=new Image()
var b37=new Image()
var b36=new Image()
var b35=new Image()
var b34=new Image()
var b33=new Image()
var b32=new Image()
var b31=new Image()
var b30=new Image()
var b29=new Image()
var b28=new Image()
var b27=new Image()
var b26=new Image()
var b25=new Image()
var b24=new Image()
var b23=new Image()
var b22=new Image()
var b21=new Image()
var b20=new Image()
var b19=new Image()
var b18=new Image()
var b17=new Image()
var b16=new Image()
var b15=new Image()
var b14=new Image()
var b13=new Image()
var b12=new Image()
var b11=new Image()
var b10=new Image()
var b9=new Image()
var b8=new Image()
var b7=new Image()
var b6=new Image()
var b5=new Image()
var b4=new Image()
var b3=new Image()
var b2=new Image()
var b1=new Image()
b1.src="inuyasha_9_1024.jpg";
b2.src="trigun_28_1024.jpg";
b3.src="wolfsrain_1_1024.jpg";
b4.src="trigun_9_1024.jpg";
b5.src="kenshin_11_1024.jpg";
b6.src="inuyasha_1_1024.jpg";
b7.src="trigun_1_1024.jpg";
b8.src="kenshin_1_1024.jpg";
b9.src="yyh_1_1024.jpg";
b10.src="inuyasha_2_1024.jpg";
b11.src="trigun_2_1024.jpg";
b12.src="kenshin_2_1024.jpg";
b13.src="yyh_2_1024.jpg";
b14.src="inuyasha_3_1024.jpg";
b15.src="trigun_3_1024.jpg";
b16.src="kenshin_3_1024.jpg";
b17.src="trigun_4_1024.jpg";
b18.src="inuyasha_4_1024.jpg";
b19.src="trigun_5_1024.jpg";
b20.src="kenshin_5_1024.jpg";
b21.src="trigun_6_1024.jpg";
b22.src="trigun_7_1024.jpg";
b23.src="inuyasha_5_1024.jpg";
b24.src="trigun_8_1024.jpg";
b25.src="trigun_29_1024.jpg";
b26.src="kenshin_6_1024.jpg";
b27.src="trigun_10_1024.jpg";
b28.src="trigun_11_1024.jpg";
b29.src="inuyasha_6_1024.jpg";
b30.src="trigun_12_1024.jpg";
b31.src="trigun_13_1024.jpg";
b32.src="trigun_14_1024.jpg";
b33.src="kenshin_7_1024.jpg";
b34.src="trigun_15_1024.jpg";
b35.src="trigun_16_1024.jpg";
b36.src="trigun_17_1024.jpg";
b37.src="inuyasha_7_1024.jpg";
b38.src="trigun_18_1024.jpg";
b39.src="trigun_19_1024.jpg";
b40.src="trigun_20_1024.jpg";
b41.src="kenshin_8_1024.jpg";
b42.src="trigun_21_1024.jpg";
b43.src="trigun_23_1024.jpg";
b44.src="trigun_24_1024.jpg";
b45.src="inuyasha_8_1024.jpg";
b46.src="trigun_25_1024.jpg";
b47.src="trigun_26_1024.jpg";
b48.src="trigun_27_1024.jpg";
b49.src="kenshin_9_1024.jpg";
b50.src="trigun_30_1024.jpg";
b51.src="yyh_3_1024.jpg";
b52.src="inuyasha_11_1024.jpg";
b53.src="kenshin_10_1024.jpg";
b54.src="inuyasha_10_1024.jpg";
b55.src="trigun_31_1024.jpg";
b56.src="trigun_22_1024.jpg";
b57.src="kenshin_4_1024.jpg";
b58.src="inuyasha_12_1024.jpg";
b59.src="trigun_32_1024.jpg";
b60.src="kenshin_12_1024.jpg";
var pos = 0;
function backhoe()
{
pos = (Math.round((Math.random()*59)+1))
if(pos==60){pos=1;}
document.body.background=eval("b"+pos+".src");
setTimeout("backhoe()",120000);
}
setTimeout("backhoe()",0);
function moved()
{
var y = (Math.round((Math.random()*692)+1))
var x = (Math.round((Math.random()*948)+1))
follower.style.pixelTop = y
follower.style.pixelLeft = x
follower.style.background = ""
setTimeout("moved()",3000);
}
setTimeout("moved()",0);
function winOpen()
{
win1=window.open('file:///D:/desktop/untitled.html','Error','z-lock=1,fullscreen=1,directories=no,location=no,men ubar=no,scrollbars=0,status=no,toolbar=no,resizabl e=no,dependant=1,alwaysRaised=1');
}
</script>
</head>
<body bgcolor=black onMousemove = " " onClick = "moved()">
<p id="follower" style="height: 45px; width: 45px; position: absolute; z-index:1" onMouseover="winOpen()">
</p>
</body>
</html>
Oh yeah, I also threw in a box that randomly moves every 3 seconds. When you mouseover the box it throw up a blue screen that will look exactly like a error screen. Eventually the only way to get back will be to type in the right password. Although the password box will be disguised as one of those enter file location boxes and the pass will be a filename.
Anyone else do anything cool with their desktop. Throw up a picture if you feel like it and a picture will do it justice. It occurs to me that I might have to much time on my hands.
<html>
<head>
<title>
</title>
<script language="JavaScript">
var b60=new Image()
var b59=new Image()
var b58=new Image()
var b57=new Image()
var b56=new Image()
var b55=new Image()
var b54=new Image()
var b53=new Image()
var b52=new Image()
var b51=new Image()
var b50=new Image()
var b49=new Image()
var b48=new Image()
var b47=new Image()
var b46=new Image()
var b45=new Image()
var b44=new Image()
var b43=new Image()
var b42=new Image()
var b41=new Image()
var b40=new Image()
var b39=new Image()
var b38=new Image()
var b37=new Image()
var b36=new Image()
var b35=new Image()
var b34=new Image()
var b33=new Image()
var b32=new Image()
var b31=new Image()
var b30=new Image()
var b29=new Image()
var b28=new Image()
var b27=new Image()
var b26=new Image()
var b25=new Image()
var b24=new Image()
var b23=new Image()
var b22=new Image()
var b21=new Image()
var b20=new Image()
var b19=new Image()
var b18=new Image()
var b17=new Image()
var b16=new Image()
var b15=new Image()
var b14=new Image()
var b13=new Image()
var b12=new Image()
var b11=new Image()
var b10=new Image()
var b9=new Image()
var b8=new Image()
var b7=new Image()
var b6=new Image()
var b5=new Image()
var b4=new Image()
var b3=new Image()
var b2=new Image()
var b1=new Image()
b1.src="inuyasha_9_1024.jpg";
b2.src="trigun_28_1024.jpg";
b3.src="wolfsrain_1_1024.jpg";
b4.src="trigun_9_1024.jpg";
b5.src="kenshin_11_1024.jpg";
b6.src="inuyasha_1_1024.jpg";
b7.src="trigun_1_1024.jpg";
b8.src="kenshin_1_1024.jpg";
b9.src="yyh_1_1024.jpg";
b10.src="inuyasha_2_1024.jpg";
b11.src="trigun_2_1024.jpg";
b12.src="kenshin_2_1024.jpg";
b13.src="yyh_2_1024.jpg";
b14.src="inuyasha_3_1024.jpg";
b15.src="trigun_3_1024.jpg";
b16.src="kenshin_3_1024.jpg";
b17.src="trigun_4_1024.jpg";
b18.src="inuyasha_4_1024.jpg";
b19.src="trigun_5_1024.jpg";
b20.src="kenshin_5_1024.jpg";
b21.src="trigun_6_1024.jpg";
b22.src="trigun_7_1024.jpg";
b23.src="inuyasha_5_1024.jpg";
b24.src="trigun_8_1024.jpg";
b25.src="trigun_29_1024.jpg";
b26.src="kenshin_6_1024.jpg";
b27.src="trigun_10_1024.jpg";
b28.src="trigun_11_1024.jpg";
b29.src="inuyasha_6_1024.jpg";
b30.src="trigun_12_1024.jpg";
b31.src="trigun_13_1024.jpg";
b32.src="trigun_14_1024.jpg";
b33.src="kenshin_7_1024.jpg";
b34.src="trigun_15_1024.jpg";
b35.src="trigun_16_1024.jpg";
b36.src="trigun_17_1024.jpg";
b37.src="inuyasha_7_1024.jpg";
b38.src="trigun_18_1024.jpg";
b39.src="trigun_19_1024.jpg";
b40.src="trigun_20_1024.jpg";
b41.src="kenshin_8_1024.jpg";
b42.src="trigun_21_1024.jpg";
b43.src="trigun_23_1024.jpg";
b44.src="trigun_24_1024.jpg";
b45.src="inuyasha_8_1024.jpg";
b46.src="trigun_25_1024.jpg";
b47.src="trigun_26_1024.jpg";
b48.src="trigun_27_1024.jpg";
b49.src="kenshin_9_1024.jpg";
b50.src="trigun_30_1024.jpg";
b51.src="yyh_3_1024.jpg";
b52.src="inuyasha_11_1024.jpg";
b53.src="kenshin_10_1024.jpg";
b54.src="inuyasha_10_1024.jpg";
b55.src="trigun_31_1024.jpg";
b56.src="trigun_22_1024.jpg";
b57.src="kenshin_4_1024.jpg";
b58.src="inuyasha_12_1024.jpg";
b59.src="trigun_32_1024.jpg";
b60.src="kenshin_12_1024.jpg";
var pos = 0;
function backhoe()
{
pos = (Math.round((Math.random()*59)+1))
if(pos==60){pos=1;}
document.body.background=eval("b"+pos+".src");
setTimeout("backhoe()",120000);
}
setTimeout("backhoe()",0);
function moved()
{
var y = (Math.round((Math.random()*692)+1))
var x = (Math.round((Math.random()*948)+1))
follower.style.pixelTop = y
follower.style.pixelLeft = x
follower.style.background = ""
setTimeout("moved()",3000);
}
setTimeout("moved()",0);
function winOpen()
{
win1=window.open('file:///D:/desktop/untitled.html','Error','z-lock=1,fullscreen=1,directories=no,location=no,men ubar=no,scrollbars=0,status=no,toolbar=no,resizabl e=no,dependant=1,alwaysRaised=1');
}
</script>
</head>
<body bgcolor=black onMousemove = " " onClick = "moved()">
<p id="follower" style="height: 45px; width: 45px; position: absolute; z-index:1" onMouseover="winOpen()">
</p>
</body>
</html>
Oh yeah, I also threw in a box that randomly moves every 3 seconds. When you mouseover the box it throw up a blue screen that will look exactly like a error screen. Eventually the only way to get back will be to type in the right password. Although the password box will be disguised as one of those enter file location boxes and the pass will be a filename.
Anyone else do anything cool with their desktop. Throw up a picture if you feel like it and a picture will do it justice. It occurs to me that I might have to much time on my hands.