06-13-2004, 12:56 AM | #1 |
Friendly Neighborhood Quantum Hobo
Join Date: Mar 2004
Location: Outside the M-brane look'n in
Posts: 5,403
|
Interesting things to do to your Desktop.
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. |
06-13-2004, 03:43 AM | #2 | |
Villainous Archmage
|
wow, that's incredibly cool..........though I can't understand a WORD of it.
__________________
Quote:
|
|
06-13-2004, 04:01 AM | #3 |
That's NumberWang!
|
Erm....I put a rather funky Background image on mine?
I moved my stuff (My boxes of stuff) in a differant corner? Meh, My Desktop stinks(Need to clean it)
__________________
Be confident, Wear a Cape! |
06-13-2004, 04:10 AM | #4 |
Sent to the cornfield
Join Date: Apr 2004
Location: Las Vegas
Posts: 4,566
|
Sithdarth, that is the geekiest thing I have ever seen in my entire tenure on this planet! *suplicates himself before the awesome dorkiness of Sithdarth* I just started teaching myself javascript, but I still have no idea how it works. The simple fact that you would post the actual code here is beyond my comprehension. "my mind is blown away!" :fighter:
|
06-13-2004, 06:41 AM | #5 |
Pure joy
|
Now that's cool, although I can't really understand it, apart from very basic principles (= you read from left to right).
If I had a better graphics card, I'd set my Winamp visualization (Milkdrop) to desktop mode, but whenever I try that, everything goes into snail mode. It's really good on faster PCs, though. |
06-13-2004, 09:51 AM | #6 |
Uncommonly common.
|
Why would you use javascript to make a program that constantly runs in the background of Windows?
__________________
The Loop. O x Me.
|
06-13-2004, 11:30 AM | #7 |
< Chococat >
Join Date: Dec 2003
Location: Los Angeles
Posts: 268
|
well there used to be a prank me and my husband would play on eachother, we'd take a screenshot of the desktop, hide all the icons, start menu and tool bar, and then put the screen shot as the desktop image so we'd think our computer was frozen. kind of amusing.
__________________
A short sig. I has it.
|
06-13-2004, 11:53 AM | #8 |
</ >
|
Sith, Zoa's right. That's pathetically geeky.
... ....Can I have your babies? |
06-13-2004, 12:03 PM | #9 |
wishes he was bob dylan
Join Date: Jun 2004
Location: scotland
Posts: 85
|
while i cant get why someone would spend so much time doing all that i gotta admit its kinda cool, well done
__________________
theres beauty in everything its up to you to look hard enough cellar door |
06-13-2004, 12:11 PM | #10 |
MSI Productions
|
Didn't understand any of it but still it seems cool.
|
|
|