=Thủ thuật=

Code Tim

qip (@qip) - 5 years 12 days ago
<script type='text/javascript'> //<![CDATA[ var pictureSrc ="https://qip.wodemo.com/down/504681/Heart3.png"; //the location of the snowflakes var pictureWidth = 30; //the width of the snowflakes var pictureHeight = 30; //the height of the snowflakes var numFlakes = 10; //the number of snowflakes var downSpeed = 0.02; //the falling speed of snowflakes (portion of screen per 100 ms) var lrFlakes = 10; //the speed that the snowflakes should swing from side to side if( typeof( numFlakes ) != 'number' || Math.round( numFlakes ) != numFlakes || numFlakes < 1 ) { numFlakes = 10; } //draw the snowflakes for( var x = 0; x < numFlakes; x++ ) { if( document.layers ) { //releave NS4 bug document.write('<layer id="snFlkDiv'+x+'"><imgsrc="'+pictureSrc+'" height="'+pictureHeight+'"width="'+pictureWidth+'" alt="*" border="0"></layer>'); } else { document.write('<div style="position:absolute; z-index:9999;"id="snFlkDiv'+x+'"><img src="'+pictureSrc+'"height="'+pictureHeight+'" width="'+pictureWidth+'" alt="*"border="0"></div>'); } } //calculate initial positions (in portions of browser window size) var xcoords = new Array(), ycoords = new Array(), snFlkTemp; for( var x = 0; x < numFlakes; x++ ) { xcoords[x] = ( x + 1 ) / ( numFlakes + 1 ); do { snFlkTemp = Math.round( ( numFlakes - 1 ) * Math.random() ); } while( typeof( ycoords[snFlkTemp] ) == 'number' ); ycoords[snFlkTemp] = x / numFlakes; } //now animate function flakeFall() { if( !getRefToDivNest('snFlkDiv0') ) { return; } var scrWidth = 0, scrHeight = 0, scrollHeight = 0, scrollWidth = 0; //find screen settings for all variations. doing this every time allows for resizing and scrolling if( typeof( window.innerWidth ) == 'number' ) { scrWidth = window.innerWidth; scrHeight = window.innerHeight; } else { if( document.documentElement && (document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) { scrWidth = document.documentElement.clientWidth; scrHeight = document.documentElement.clientHeight; } else { if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { scrWidth = document.body.clientWidth; scrHeight = document.body.clientHeight; } } } if( typeof( window.pageYOffset ) == 'number' ) { scrollHeight = pageYOffset; scrollWidth = pageXOffset; } else { if( document.body && ( document.body.scrollLeft ||document.body.scrollTop ) ) { scrollHeight = document.body.scrollTop;scrollWidth = document.body.scrollLeft; } else { if(document.documentElement && (document.documentElement.scrollLeft ||document.documentElement.scrollTop ) ) { scrollHeight =document.documentElement.scrollTop; scrollWidth =document.documentElement.scrollLeft; } } } //move the snowflakes to their new position for( var x = 0; x < numFlakes; x++ ) { if( ycoords[x] * scrHeight > scrHeight - pictureHeight ) { ycoords[x] = 0; } var divRef = getRefToDivNest('snFlkDiv'+x); if( !divRef ) { return; } if( divRef.style ) { divRef = divRef.style; } var oPix = document.childNodes ? 'px' : 0; divRef.top = ( Math.round( ycoords[x] * scrHeight ) + scrollHeight ) + oPix; divRef.left = ( Math.round( ( ( xcoords[x] * scrWidth ) - (pictureWidth / 2 ) ) + ( ( scrWidth / ( ( numFlakes + 1 ) * 4 ) ) * (Math.sin( lrFlakes * ycoords[x] ) - Math.sin( 3 * lrFlakes * ycoords[x]) ) ) ) + scrollWidth ) + oPix; ycoords[x] += downSpeed; } } //DHTML handlers function getRefToDivNest(divName) { if( document.layers ) { return document.layers[divName]; } //NS4 if( document[divName] ) { return document[divName]; } //NS4 also if( document.getElementById ) { return document.getElementById(divName); } //DOM (IE5+, NS6+, Mozilla0.9+, Opera) if( document.all ) { return document.all[divName]; } //Proprietary DOM - IE4 return false; } window.setInterval('flakeFall();',100); //]]> </script>
1 Replies | Last Reply: 3 years 24 days ago
Pg. 1

@warioh | @ - 3 years 24 days ago
http://audiobookkeeper.ru/book/4491 http://cottagenet.ru/plan/855 http://eyesvision.ru/better-eyesight-magazine-better-eyesight-1922-07 http://eyesvisions.com/stories-from-the-clinic-chapter-1 http://factoringfee.ru/t/1385279 http://filmzones.ru/t/1378784 http://gadwall.ru/t/1473872 http://gaffertape.ru/t/1281125 http://gageboard.ru/t/1232215 http://gagrule.ru/t/1040056 http://gallduct.ru/t/1442584 http://galvanometric.ru/t/1640135 http://gangforeman.ru/t/1678648 http://gangwayplatform.ru/t/1702725 http://garbagechute.ru/t/1577946 http://gardeningleave.ru/t/1439821 http://gascautery.ru/t/1759933 http://gashbucket.ru/t/1584218 http://gasreturn.ru/t/1751719 http://gatedsweep.ru/t/1383906 http://gaugemodel.ru/t/1829729 http://gaussianfilter.ru/t/1708226 http://gearpitchdiameter.ru/t/1377356 http://geartreating.ru/t/1375845 http://generalizedanalysis.ru/t/1354563 http://generalprovisions.ru/t/1386350 http://geophysicalprobe.ru/t/1553473 http://geriatricnurse.ru/t/1553216 http://getintoaflap.ru/t/1563638 http://getthebounce.ru/t/1251559 http://habeascorpus.ru/t/1380209 http://habituate.ru/t/1370435 http://hackedbolt.ru/t/1357188 http://hackworker.ru/t/1679091 http://hadronicannihilation.ru/t/1346361 http://haemagglutinin.ru/t/1353741 http://hailsquall.ru/t/1369641 http://hairysphere.ru/t/1378549 http://halforderfringe.ru/t/1379637 http://halfsiblings.ru/t/1537077 http://hallofresidence.ru/t/1379586 http://haltstate.ru/t/1478089 http://handcoding.ru/t/1475415 http://handportedhead.ru/t/1699630 http://handradar.ru/t/1470697 http://handsfreetelephone.ru/t/1578313 http://hangonpart.ru/t/1371552 http://haphazardwinding.ru/t/1375823 http://hardalloyteeth.ru/t/1221304 http://hardasiron.ru/t/1040741 http://hardenedconcrete.ru/t/1247018 http://harmonicinteraction.ru/t/1352714 http://hartlaubgoose.ru/t/1302840 http://hatchholddown.ru/t/1412027 http://haveafinetime.ru/t/1548125 http://hazardousatmosphere.ru/t/1548153 http://headregulator.ru/t/1548167 http://heartofgold.ru/t/1645009 http://heatageingresistance.ru/t/1370605 http://heatinggas.ru/t/1586418 http://heavydutymetalcutting.ru/t/1254045 http://jacketedwall.ru/t/849366 http://japanesecedar.ru/t/1238741 http://jibtypecrane.ru/t/1691613 http://jobabandonment.ru/t/1242083 http://jobstress.ru/t/1379429 http://jogformation.ru/t/1249568 http://jointcapsule.ru/t/1383295 http://jointsealingmaterial.ru/t/1347914 http://journallubricator.ru/t/1489679 http://juicecatcher.ru/t/1327906 http://junctionofchannels.ru/t/1350860 http://justiciablehomicide.ru/t/1247246 http://juxtapositiontwin.ru/t/1225703 http://kaposidisease.ru/t/1242408 http://keepagoodoffing.ru/t/1182255 http://keepsmthinhand.ru/t/1242123 http://kentishglory.ru/t/1346063 http://kerbweight.ru/t/1348849 http://kerrrotation.ru/t/1250725 http://keymanassurance.ru/t/1227748 http://keyserum.ru/t/1369135 http://kickplate.ru/t/1662761 http://killthefattedcalf.ru/t/1566365 http://kilowattsecond.ru/t/1369705 http://kingweakfish.ru/t/1700702 http://kinozones.ru/film/4491 http://kleinbottle.ru/t/1378654 http://kneejoint.ru/t/1387778 http://knifesethouse.ru/t/1762570 http://knockonatom.ru/t/1414030 http://knowledgestate.ru/t/1515805 http://kondoferromagnet.ru/t/1549637 http://labeledgraph.ru/t/1548435 http://laborracket.ru/t/1567396 http://labourearnings.ru/t/1701092 http://labourleasing.ru/t/1549568 http://laburnumtree.ru/t/1239707 http://lacingcourse.ru/t/1369267 http://lacrimalpoint.ru/t/1585518 http://lactogenicfactor.ru/t/1579709 http://lacunarycoefficient.ru/t/1302471 http://ladletreatediron.ru/t/1193096 http://laggingload.ru/t/1246163 http://laissezaller.ru/t/1312675 http://lambdatransition.ru/t/1251645 http://laminatedmaterial.ru/t/1369829 http://lammasshoot.ru/t/1783838 http://lamphouse.ru/t/1346832 http://lancecorporal.ru/t/1243235 http://lancingdie.ru/t/1187595 http://landingdoor.ru/t/1224090 http://landmarksensor.ru/t/1711631 http://landreform.ru/t/1345341 http://landuseratio.ru/t/1241461 http://languagelaboratory.ru/t/1357661 http://largeheart.ru/shop/1160028 http://lasercalibration.ru/shop/152074 http://laserlens.ru/lase_zakaz/191 http://laserpulse.ru/shop/589234 http://laterevent.ru/shop/1030569 http://latrinesergeant.ru/shop/453704 http://layabout.ru/shop/99558 http://leadcoating.ru/shop/25322 http://leadingfirm.ru/shop/101531 http://learningcurve.ru/shop/269981 http://leaveword.ru/shop/145259 http://machinesensible.ru/shop/107211 http://magneticequator.ru/shop/195342 http://magnetotelluricfield.ru/shop/145886 http://mailinghouse.ru/shop/69851 http://majorconcern.ru/shop/268235 http://mammasdarling.ru/shop/158905 http://managerialstaff.ru/shop/159266 http://manipulatinghand.ru/shop/613098 http://manualchoke.ru/shop/597460 http://medinfobooks.ru/book/1133 http://mp3lists.ru/item/4491 http://nameresolution.ru/shop/144862 http://naphtheneseries.ru/shop/104244 http://narrowmouthed.ru/shop/449025 http://nationalcensus.ru/shop/176466 http://naturalfunctor.ru/shop/23694 http://navelseed.ru/shop/100524 http://neatplaster.ru/shop/177380 http://necroticcaries.ru/shop/27425 http://negativefibration.ru/shop/178131 http://neighbouringrights.ru/shop/98429 http://objectmodule.ru/shop/108224 http://observationballoon.ru/shop/97488 http://obstructivepatent.ru/shop/98048 http://oceanmining.ru/shop/473254 http://octupolephonon.ru/shop/571466 http://offlinesystem.ru/shop/147460 http://offsetholder.ru/shop/199603 http://olibanumresinoid.ru/shop/146724 http://onesticket.ru/shop/378827 http://packedspheres.ru/shop/579216 http://pagingterminal.ru/shop/585846 http://palatinebones.ru/shop/201326 http://palmberry.ru/shop/204538 http://papercoating.ru/shop/580377 http://paraconvexgroup.ru/shop/684632 http://parasolmonoplane.ru/shop/1165921 http://parkingbrake.ru/shop/1165988 http://partfamily.ru/shop/1164997 http://partialmajorant.ru/shop/1167703 http://quadrupleworm.ru/shop/1295509 http://qualitybooster.ru/shop/165717 http://quasimoney.ru/shop/593462 http://quenchedspark.ru/shop/593446 http://quodrecuperet.ru/shop/126256 http://rabbetledge.ru/shop/1070575 http://radialchaser.ru/shop/126140 http://radiationestimator.ru/shop/173122 http://railwaybridge.ru/shop/340194 http://randomcoloration.ru/shop/509997 http://rapidgrowth.ru/shop/635229 http://rattlesnakemaster.ru/shop/1031567 http://reachthroughregion.ru/shop/160632 http://readingmagnifier.ru/shop/175738 http://rearchain.ru/shop/350055 http://recessioncone.ru/shop/513211 http://recordedassignment.ru/shop/14629 http://rectifiersubstation.ru/shop/1051447 http://redemptionvalue.ru/shop/1058680 http://reducingflange.ru/shop/1068311 http://referenceantigen.ru/shop/1692373 http://regeneratedprotein.ru/shop/1217531 http://reinvestmentplan.ru/shop/121217 http://safedrilling.ru/shop/1323624 http://sagprofile.ru/shop/1043391 http://salestypelease.ru/shop/1064607 http://samplinginterval.ru/shop/1407317 http://satellitehydrology.ru/shop/1454893 http://scarcecommodity.ru/shop/1433558 http://scrapermat.ru/shop/1454927 http://screwingunit.ru/shop/1488236 http://seawaterpump.ru/shop/172567 http://secondaryblock.ru/shop/248963 http://secularclergy.ru/shop/270081 http://seismicefficiency.ru/shop/41301 http://selectivediffuser.ru/shop/54151 http://semiasphalticflux.ru/shop/398444 http://semifinishmachining.ru/shop/73021 http://spicetrade.ru/spice_zakaz/191 http://spysale.ru/spy_zakaz/191 http://stungun.ru/stun_zakaz/191 http://tacticaldiameter.ru/shop/475417 http://tailstockcenter.ru/shop/488547 http://tamecurve.ru/shop/82432 http://tapecorrection.ru/shop/83978 http://tappingchuck.ru/shop/484829 http://taskreasoning.ru/shop/496619 http://technicalgrade.ru/shop/1814192 http://telangiectaticlipoma.ru/shop/620385 http://telescopicdamper.ru/shop/620096 http://temperateclimate.ru/shop/270844 http://temperedmeasure.ru/shop/398432 http://tenementbuilding.ru/shop/943320 http://tuchkas.ru/ http://ultramaficrock.ru/shop/973053 http://ultraviolettesting.ru/shop/475887
Pg. 1
Reply:

Name

Contents





Register | Login | N