falling images |
falling images |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Jan 2004 Member No: 807 ![]() |
is there a code for falling images?? the one in the script tools doesn't work anymore..
![]() |
|
|
![]() |
![]()
Post
#2
|
|
![]() i rock c[ = ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: Jun 2004 Member No: 22,226 ![]() |
that code does not work in xanga.... now i did a search somewhere and i found falling images but not snowflakes
![]() ![]() falling rain:: CODE <!-- begin code provided by createblog.com --> style> .drop { position: absolute; width: 3; filter: flipV(), flipH(); font-size: 40; color: pink } </style> <script language="javascript"> //Rain/Snow effect- By Craig Blanchette Craiga.topcities.com //Script featured on Dynamic Drive //Visit http://www.dynamicdrive.com for this script and more snow = false; // false-rain; true-snow snowsym = " * " //These are the symbols for each rainsym = " ' " //You can put images here. howmany = 10 //How many drops/snowflakes? /**************Do not need to change anything below***********/ if(snow){sym = snowsym; speed=1; angle=10; drops=howmany} else{sym = rainsym; speed=50; drops=howmany; angle=6} movex = -speed/angle; movey = speed; count = 0; function moverain(){ for(move = 0; move < drops; move++){ xx[move]+=movex; yy[move]+=mv[move]; hmm = Math.round(Math.random()*1); if(xx[move] < 0){xx[move] = maxx+10;} if(yy[move] > maxy){yy[move] = 10;} drop[move].left = xx[move] drop[move].top = yy[move]+document.body.scrollTop; }setTimeout('moverain()','1')} </script> <script language="javascript"> if (document.all){ drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array() ly = "document.all[\'"; st = "\'].style" for(make = 0; make < drops; make++){ document.write('<div id="drop'+make+'" class=drop>'+sym+'</div>'); drop[make] = eval(ly+'drop'+make+st); maxx = document.body.clientWidth-40 maxy = document.body.clientHeight-40 xx[make] = Math.random()*maxx; yy[make] = -100-Math.random()*maxy; drop[make].left = xx[make] drop[make].top = yy[make] mv[make] = (Math.random()*5)+speed/4; drop[make].fontSize = (Math.random()*10)+20; if(snow){col = 'white'}else{col = 'blue'} drop[make].color = col; } window.onload=moverain } </script> <!-- end code provided by createblog.com --> falling bubbles::: CODE <!-- begin code provided by createblog.com -->
<script> <!-- document.write(unescape("%3Cscript%20language%3D%22JavaScript1.2%22%3E%0D%0A%3C%21--%20Begin%0D%0A%0D%0A//Bubble%20Script%20by%20Lisa%20%28issa@lissaexplains.com%2C%20http%3A//lissaexplains.com%29%0D%0A//Based%20on%20code%20by%20Altan%20d.o.o.%20%28snow@altan.hr%29%0D%0A//For%20full%20source%20code%20and%20installation%20instructions%20to%20this%20script%2C%20visit%20http%3A//www.dynamicdrive.com%0D%0A%0D%0Avar%20no%20%3D%205%3B%20//%20image%20number%20or%20falling%20rate%0D%0Avar%20speed%20%3D%202%3B%20//%20the%20lower%20the%20number%20the%20faster%20the%20image%20moves%0D%0Avar%20snow%20%3D%20new%20Array%28%29%3B%0D%0Asnow%5B0%5D%20%3D%20%22http%3A//mischiefsrose.homestead.com/Files/floats/floatingbubble2.gif%22%0D%0Asnow%5B1%5D%20%3D%20%22http%3A//mischiefsrose.homestead.com/Files/floats/floatingbubble2.gif%22%0D%0Asnow%5B2%5D%20%3D%20%22http%3A//mischiefsrose.homestead.com/Files/floats/floatingbubble2.gif%22%0D%0A%0D%0Avar%20ns4up%20%3D%20%28document.layers%29%20%3F%201%20%3A%200%3B%20%20//%20browser%20sniffer%0D%0Avar%20ie4up%20%3D%20%28document.all%29%20%3F%201%20%3A%200%3B%0D%0Avar%20ns6up%20%3D%20%28document.getElementById%26%26%21document.all%29%20%3F%201%20%3A%200%3B%0D%0Avar%20dx%2C%20xp%2C%20yp%3B%20%20%20%20//%20coordinate%20and%20position%20variables%0D%0Avar%20am%2C%20stx%2C%20sty%3B%20%20//%20amplitude%20and%20step%20variables%0D%0Avar%20i%2C%20doc_width%20%3D%20800%2C%20doc_height%20%3D%201800%3B%0D%0A%0D%0Aif%20%28ns4up%7C%7Cns6up%29%20%7B%0D%0A%20%20%20%20%20%20%20%20doc_width%20%3D%20self.innerWidth%3B%0D%0A%20%20%20%20%20%20%20%20doc_height%20%3D%20self.innerHeight%3B%0D%0A%7D%20else%20if%20%28ie4up%29%20%7B%0D%0A%20%20%20%20%20%20%20%20doc_width%20%3D%20document.body.clientWidth%3B%0D%0A%20%20%20%20%20%20%20%20doc_height%20%3D%20document.body.clientHeight%3B%0D%0A%7D%0D%0A%0D%0Adx%20%3D%20new%20Array%28%29%3B%0D%0Axp%20%3D%20new%20Array%28%29%3B%0D%0Ayp%20%3D%20new%20Array%28%29%3B%0D%0Aam%20%3D%20new%20Array%28%29%3B%0D%0Astx%20%3D%20new%20Array%28%29%3B%0D%0Asty%20%3D%20new%20Array%28%29%3B%0D%0Aj%20%3D%200%3B%0D%0A%0D%0Afor%20%28i%20%3D%200%3B%20i%20%3C%20no%3B%20++%20i%29%20%7B%0D%0A%20%20%20%20%20%20%20%20dx%5Bi%5D%20%3D%200%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20//%20set%20coordinate%20variables%0D%0A%20%20%20%20%20%20%20%20xp%5Bi%5D%20%3D%20Math.random%28%29*%28doc_width-50%29%3B%20%20//%20set%20position%20variables%0D%0A%20%20%20%20%20%20%20%20yp%5Bi%5D%20%3D%20Math.random%28%29*doc_height%3B%0D%0A%20%20%20%20%20%20%20%20am%5Bi%5D%20%3D%20Math.random%28%29*20%3B%20%20%20%20%20%20%20%20%20//%20set%20amplitude%20variables%0D%0A%20%20%20%20%20%20%20%20stx%5Bi%5D%20%3D%200.02%20+%20Math.random%28%29/10%3B%20//%20set%20step%20variables%0D%0A%20%20%20%20%20%20%20%20sty%5Bi%5D%20%3D%200.7%20+%20Math.random%28%29%3B%20%20%20%20%20//%20set%20step%20variables%0D%0A%20%20%20%20%20%20%20%20if%20%28ns4up%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20//%20set%20layers%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28i%20%3D%3D%200%29%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.write%28%22%3Clayer%20name%3D%5C%22dot%22+%20i%20+%22%5C%22%20left%3D%5C%2215%5C%22%20top%3D%5C%2215%5C%22%20visibility%3D%5C%22show%5C%22%3E%3Cimg%20src%3D%5C%22%22+%20snow%5Bj%5D%20+%20%22%5C%22%20border%3D%5C%220%5C%22%3E%3C/layer%3E%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20else%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.write%28%22%3Clayer%20name%3D%5C%22dot%22+%20i%20+%22%5C%22%20left%3D%5C%2215%5C%22%20top%3D%5C%2215%5C%22%20visibility%3D%5C%22show%5C%22%3E%3Cimg%20src%3D%5C%22%22+%20snow%5Bj%5D%20+%20%22%5C%22%20border%3D%5C%220%5C%22%3E%3C/layer%3E%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%7D%20else%20if%20%28ie4up%7C%7Cns6up%29%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28i%20%3D%3D%200%29%20%0D%0A%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.write%28%22%3Cdiv%20id%3D%5C%22dot%22+%20i%20+%22%5C%22%20style%3D%5C%22POSITION%3A%20absolute%3B%20Z-INDEX%3A%20%22+%20i%20+%22VISIBILITY%3A%20visible%3B%20TOP%3A%2015px%3B%20LEFT%3A%2015px%3B%20width%3A1%3B%5C%22%3E%3Cimg%20src%3D%5C%22%22%20+%20snow%5Bj%5D%20+%20%22%5C%22%20border%3D%5C%220%5C%22%3E%3C/div%3E%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20else%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.write%28%22%3Cdiv%20id%3D%5C%22dot%22+%20i%20+%22%5C%22%20style%3D%5C%22POSITION%3A%20absolute%3B%20Z-INDEX%3A%20%22+%20i%20+%22VISIBILITY%3A%20visible%3B%20TOP%3A%2015px%3B%20LEFT%3A%2015px%3B%20width%3A1%3B%5C%22%3E%3Cimg%20src%3D%5C%22%22%20+%20snow%5Bj%5D%20+%20%22%5C%22%20border%3D%5C%220%5C%22%3E%3C/div%3E%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20if%20%28j%20%3D%3D%20%28snow.length-1%29%29%20%7B%20j%20%3D%200%3B%20%7D%20else%20%7B%20j%20+%3D%201%3B%20%7D%0D%0A%7D%0D%0A%0D%0Afunction%20snowNS%28%29%20%7B%20%20//%20Netscape%20main%20animation%20function%0D%0A%20%20%20%20%20%20%20%20for%20%28i%20%3D%200%3B%20i%20%3C%20no%3B%20++%20i%29%20%7B%20%20//%20iterate%20for%20every%20dot%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yp%5Bi%5D%20-%3D%20sty%5Bi%5D%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28yp%5Bi%5D%20%3C%20-50%29%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20xp%5Bi%5D%20%3D%20Math.random%28%29*%28doc_width-am%5Bi%5D-30%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yp%5Bi%5D%20%3D%20doc_height%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stx%5Bi%5D%20%3D%200.02%20+%20Math.random%28%29/10%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20sty%5Bi%5D%20%3D%200.7%20+%20Math.random%28%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20doc_width%20%3D%20self.innerWidth%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20doc_height%20%3D%20self.innerHeight%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dx%5Bi%5D%20+%3D%20stx%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.layers%5B%22dot%22+i%5D.top%20%3D%20yp%5Bi%5D+pageYOffset%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.layers%5B%22dot%22+i%5D.left%20%3D%20xp%5Bi%5D%20+%20%0D%0Aam%5Bi%5D*Math.sin%28dx%5Bi%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20setTimeout%28%22snowNS%28%29%22%2C%20speed%29%3B%0D%0A%7D%0D%0A%0D%0Afunction%20snowIE_NS6%28%29%20%7B%20%20//%20IE%20main%20animation%20function%0D%0A%20%20%20%20%20%20%20%20for%20%28i%20%3D%200%3B%20i%20%3C%20no%3B%20++%20i%29%20%7B%20%20//%20iterate%20for%20every%20dot%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yp%5Bi%5D%20-%3D%20sty%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28yp%5Bi%5D%20%3C%20-50%29%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20xp%5Bi%5D%20%3D%20Math.random%28%29*%28doc_width-am%5Bi%5D-30%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yp%5Bi%5D%20%3D%20doc_height%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stx%5Bi%5D%20%3D%200.02%20+%20Math.random%28%29/10%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20sty%5Bi%5D%20%3D%200.7%20+%20Math.random%28%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20doc_width%20%3D%20ns6up%3Fwindow.innerWidth-5%3Adocument.body.clientWidth%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20doc_height%20%3D%20ns6up%3Fwindow.innerHeight-5%3Adocument.body.clientHeight%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dx%5Bi%5D%20+%3D%20stx%5Bi%5D%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28ie4up%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.all%5B%22dot%22+i%5D.style.pixelTop%20%3D%20yp%5Bi%5D+document.body.scrollTop%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.all%5B%22dot%22+i%5D.style.pixelLeft%20%3D%20xp%5Bi%5D%20+%20am%5Bi%5D*Math.sin%28dx%5Bi%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20else%20if%20%28ns6up%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.getElementById%28%22dot%22+i%29.style.top%3Dyp%5Bi%5D+pageYOffset%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.getElementById%28%22dot%22+i%29.style.left%3Dxp%5Bi%5D%20+%20am%5Bi%5D*Math.sin%28dx%5Bi%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20setTimeout%28%22snowIE_NS6%28%29%22%2C%20speed%29%3B%0D%0A%7D%0D%0A%0D%0Aif%20%28ns4up%29%20%7B%0D%0A%20%20%20%20%20%20%20%20snowNS%28%29%3B%0D%0A%7D%20else%20if%20%28ie4up%7C%7Cns6up%29%20%7B%0D%0A%20%20%20%20%20%20%20%20snowIE_NS6%28%29%3B%0D%0A%7D%0D%0A//%20End%20--%3E%0D%0A%3C/script%3E%3Ca%20href%3D%22http%3A//www.geocities.com/mischiefsrose%22%3E%3Cimg%20src%3D%22http%3A//mischiefsrose.homestead.com/Files/banners/floatbutton1.gif%22%20border%3D0%22%3E%3C/a%3E")); //--> </script> <!-- end code provided by createblog.com --> |
|
|
![]() ![]() |