...

View Full Version : Html code probs



NightWulf
12-13-2005, 11:19 AM
I've recently been trying to sort out a falling snow code but the only problem is the code is not showing up on my site. If anyone can help me sort it out I'd really appreciate it.


<script type="text/javascript">
snow = true;
snowsym = " * "
rainsym = " ' "
howmany = 25
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>


again.....any help would be really appreciated.

ecntrc
12-13-2005, 11:38 AM
maybe theres a missing } ?? You can check out

http://www.dynamicdrive.com/dynamicindex3/snow.htm
http://javascript.internet.com/bgeffects/snow.html
http://www.kirupa.com/developer/mx/snow.htm -- i love this site btw
http://javascript.about.com/od/effects/a/snow.htm

just a few that you can experiement with, i know that you alredy have something.. but just take a look and you may have your answer or find something else you like



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum