Lines Matching refs:s

354     var s = this;
390 if (isNaN(s.x) || isNaN(s.y)) {
394 storm.setXY(s.o, s.x, s.y);
399 s.o.style.top = (screenY+scrollY-storm.flakeHeight)+'px';
401 s.o.style.top = storm.flakeBottom+'px';
403 s.o.style.display = 'none';
404 s.o.style.top = 'auto';
405 s.o.style.bottom = '0%';
406 s.o.style.position = 'fixed';
407 s.o.style.display = 'block';
412 if (s.vX>=0 && s.vX<0.2) {
413 s.vX = 0.2;
414 } else if (s.vX<0 && s.vX>-0.2) {
415 s.vX = -0.2;
417 if (s.vY>=0 && s.vY<0.2) {
418 s.vY = 0.2;
423 var vX = s.vX*windOffset, yDiff;
424 s.x += vX;
425 s.y += (s.vY*s.vAmp);
426 if (s.x >= screenX || screenX-s.x < storm.flakeWidth) { // X-axis scroll check
427 s.x = 0;
428 } else if (vX < 0 && s.x-storm.flakeLeftOffset < -storm.flakeWidth) {
429 s.x = screenX-storm.flakeWidth-1; // flakeWidth;
431 s.refresh();
432 yDiff = screenY+scrollY-s.y+storm.flakeHeight;
434 s.active = 0;
436 s.stick();
438 s.recycle();
441 if (storm.useMeltEffect && s.active && s.type < 3 && !s.melting && Math.random()>0.998) {
443 s.melting = true;
444 s.melt();
449 if (s.twinkleFrame < 0) {
451 s.twinkleFrame = parseInt(Math.random() * 8, 10);
454 s.twinkleFrame--;
456s.o.style.visibility = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 'hidden' : 'visible');
458 s.o.style.opacity = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 0 : 1);
468 s.move();
472 s.vX = vRndX+rnd(storm.vMaxX*0.12,0.1);
473 s.vY = vRndY+rnd(storm.vMaxY*0.12,0.1);
484 if (!storm.useMeltEffect || !s.melting) {
485 s.recycle();
487 if (s.meltFrame < s.meltFrameCount) {
488 s.setOpacity(s.o,s.meltFrames[s.meltFrame]);
489 s.o.style.fontSize = s.fontSize-(s.fontSize*(s.meltFrame/s.meltFrameCount))+'px';
490s.o.style.lineHeight = storm.flakeHeight+2+(storm.flakeHeight*0.75*(s.meltFrame/s.meltFrameCount))…
491 s.meltFrame++;
493 s.recycle();
499 s.o.style.display = 'none';
500 s.o.style.position = (fixedForEverything?'fixed':'absolute');
501 s.o.style.bottom = 'auto';
502 s.setVelocities();
503 s.vCheck();
504 s.meltFrame = 0;
505 s.melting = false;
506 s.setOpacity(s.o,1);
507 s.o.style.padding = '0px';
508 s.o.style.margin = '0px';
509 s.o.style.fontSize = s.fontSize+'px';
510 s.o.style.lineHeight = (storm.flakeHeight+2)+'px';
511 s.o.style.textAlign = 'center';
512 s.o.style.verticalAlign = 'baseline';
513 s.x = parseInt(rnd(screenX-storm.flakeWidth-20),10);
514 s.y = parseInt(rnd(screenY)*-1,10)-storm.flakeHeight;
515 s.refresh();
516 s.o.style.display = 'block';
517 s.active = 1;