Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    -Paul Guest

    Default InvisionFree Help

    Who knows how i can get Sno Flakes running down my IF board?

    Whats code and wer do i put it? +REP for anyone who can help ;D

  2. #2
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    Try going on www.invisionfree.com and click on support and scroll down to modifications, I am sure i have seen it on there before.

  3. #3
    -Paul Guest

    Default

    Cant find, anyone no the code?

  4. #4
    Join Date
    Aug 2005
    Posts
    144
    Tokens
    0

    Default

    Well... DJ-Barkseh, your a lucky man.

    I found it. It's kinda a diffrent style of snow flakes, but it still is snowflakes.
    Here's the code...

    // Falling Snow Javascript
    // copyright 19th November 2004, by Stephen Chapman
    // permission to use this Javascript on your web page is granted
    // provided that all of the code in this script (including these
    // comments) is used without any alteration
    // you can change the number of snow flakes if you like
    // you can also change the number of images used if you like

    var num_flakes = 10;
    var snowflakes = new Array("snowflake.gif","snowflake1.gif");

    // DOM test
    var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;
    if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else {
    var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)
    && (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}}
    function findDOM(objectId, wS) {
    if (stdDOM) return wS ? document.getElementById(objectId).style:
    document.getElementById(objectId);
    if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];
    if (nsDOM) return document.layers[objectId];
    }

    // window size tests
    function findLivePageWidth() {return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:700;}
    function findLivePageHeight() {return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:500;}
    function posX() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scroll Left? document.documentElement.scrollLeft:document.body. scrollLeft? document.body.scrollLeft:0;}
    function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scroll Top? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0; }

    // make it snow
    var speed = 100;var movw = new Array();var movh = new Array();var move = new Array();var stepw = new Array();var steph = new Array();var posw = new Array();var posh = new Array();var dir = new Array();var winWidth;var winHeight;
    function startSnow() {winWidth = findLivePageWidth()-50;winHeight = findLivePageHeight()-50; for (var i = 0; i < num_flakes; i++){move[i] = 0;movh[i] = 12+ Math.random()*2;movw[i] = 11+ Math.random()*4;posw[i] = Math.random()*(winWidth-35)+12;posh[i] = Math.random()*winHeight;stepw[i] = 0.02 + Math.random()/10;steph[i] = 0.7 + Math.random();dir[i] =(Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'" style="position: absolute;z-index: '+ i +'; visibility:hidden; "><img src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '"border="0"><\/div>');}setTimeout("moreSnow()", speed);}
    function moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh[i] > winHeight-50) {posw[i] = 10+ Math.random()*(winWidth-movw[i]-30);posh[i] =0;dir[i]=(Math.random()<0.5)?1:-1;stepw[i] = 0.02 + Math.random()/9;steph[i] = 1.3 +Math.random();} move[i] += stepw[i] *dir[i]; if (Math.abs(move[i]) > 3) {dir[i]=-dir[i];posh[i]+=Math.abs(movh[i]*move[i]);posw[i]+=movw[i]*move[i]; move[i]=0;} objstyle =findDOM('snow'+i,1); objstyle.left = posX()+posw[i] + movw[i]*move[i]; objstyle.top = posY()+posh[i] +movh[i]*(Math.abs(Math.cos(move[i])+move[i]));objstyle.visibility = 'visible';}setTimeout("moreSnow()", speed);}
    Click here to see the URL I got it from. It's javascript ppl.
    (DJ-Chad's signature here)

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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