The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Raining blood

    Nekare
    Nekare
    Forumember


    Female Posts : 54
    Reputation : 1
    Language : Norwegian

    Solved Raining blood

    Post by Nekare November 10th 2012, 5:18 pm

    Hello again! xD

    I just wonder if someone could help me with a code so I could get it to be dripping blood at the forum? c:
    I really hope someone can help me!

    Thank you!

    //Nekare//


    Last edited by Nekare on November 11th 2012, 5:19 pm; edited 2 times in total
    iyaaz
    iyaaz
    Forumember


    Male Posts : 350
    Reputation : 8
    Language : English
    Location : London

    Solved Re: Raining blood

    Post by iyaaz November 10th 2012, 5:42 pm

    just google it and search for dripping blood

    https://beta.photobucket.com/images/dripping%20blood/
    Nekare
    Nekare
    Forumember


    Female Posts : 54
    Reputation : 1
    Language : Norwegian

    Solved Re: Raining blood

    Post by Nekare November 11th 2012, 2:48 am

    ok, But I think I need a code to get this at the forum? .-.
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6980
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Solved Re: Raining blood

    Post by Sir Chivas™ November 11th 2012, 3:23 am

    Hi,

    Insert this code with your Homepage content: ACP >> Display >> Homepage >> Homepage Message Content >>
    Code:
    <script type="text/javascript">
    var speed=30; // Speed
    var flakes=20; // Number of bats
    var flake_image="http://i31.photobucket.com/albums/c359/the_dead_living/blooddripping.gif";
    var swide, shigh;
    var dx=new Array();
    var xp=new Array();
    var yp=new Array();
    var am=new Array();
    var sty=new Array();
    window.onload=function() { if (document.getElementById) {
    var k, f, b;
    b=document.createElement("div");
    b.style.position="absolute";
    b.setAttribute("id", "bod");
    document.body.appendChild(b);
    set_scroll();
    set_width();
    for (var i=0; i<flakes; i++) {
    dx[i]=0;
    am[i]=Math.random()*20;
    xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
    yp[i]=Math.random()*shigh;
    sty[i]=0.75+1.25*Math.random();
    f=document.createElement("div");
    f.style.position="absolute";
    f.setAttribute("id", "flk"+i);
    f.style.zIndex=i;
    f.style.top=yp[i]+"px";
    f.style.left=xp[i]+"px";
    k=document.createElement("img");
    k.src=flake_image;
    f.appendChild(k);
    b.appendChild(f);
    }
    setInterval("winter_snow()", speed);
    }}
    window.onresize=set_width;
    function set_width() {
    if (document.documentElement && document.documentElement.clientWidth) {
    swide=document.documentElement.clientWidth;
    shigh=document.documentElement.clientHeight;
    }
    else if (typeof(self.innerHeight)=="number") {
    swide=self.innerWidth;
    shigh=self.innerHeight;
    }
    else if (document.body.clientWidth) {
    swide=document.body.clientWidth;
    shigh=document.body.clientHeight;
    }
    else {
    swide=800;
    shigh=600
    }
    }
    window.onscroll=set_scroll;
    function set_scroll() {
    var sleft, sdown;
    if (typeof(self.pageYOffset)=="number") {
    sdown=self.pageYOffset;
    sleft=self.pageXOffset;
    }
    else if (document.body.scrollTop || document.body.scrollLeft) {
    sdown=document.body.scrollTop;
    sleft=document.body.scrollLeft;
    }
    else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
    sleft=document.documentElement.scrollLeft;
    sdown=document.documentElement.scrollTop;
    }
    else {
    sdown=0;
    sleft=0;
    }
    document.getElementById("bod").style.top=sdown+"px";
    document.getElementById("bod").style.left=sleft+"px";
    }
    function winter_snow() {
    for (var i=0; i<flakes; i++) {
    yp[i]+=sty[i];
    if (yp[i]>shigh-30) {
    xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
    yp[i]=0;
    sty[i]=0.75+1.25*Math.random();
    }
    dx[i]+=0.02+Math.random()/10;
    document.getElementById("flk"+i).style.top=yp[i]+"px";
    document.getElementById("flk"+i).style.left=(xp[i]+am[i]*Math.sin(dx[i]))+"px";
    }
    }
    </script>
    <script languaje=JavaScript src=></script>

    Will look something like this: http://testn.forosweb.net/forum
    Nekare
    Nekare
    Forumember


    Female Posts : 54
    Reputation : 1
    Language : Norwegian

    Solved Re: Raining blood

    Post by Nekare November 11th 2012, 4:14 pm

    It worked, Thank you! Smile
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6980
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Solved Re: Raining blood

    Post by Sir Chivas™ November 11th 2012, 4:22 pm

    No problem, Wink
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Raining blood

    Post by Sanket November 11th 2012, 6:27 pm

    Topic Solved & Locked

      Current date/time is November 13th 2024, 9:28 pm