Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Html code probs

  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Html code probs

    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.

    Code:
    <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.

  • #2
    Regular Coder
    Join Date
    Jun 2003
    Location
    hawaii.washington state
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •