Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Petition: ADD THIS CODE TO THE CUCKOOS NEST

  • 30-11-2004 10:57PM
    #1
    Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭


    <script language="JavaScript1.2">
    
    /******************************************
    * Snow Effect Script- By Altan d.o.o. (snow@altan.hr, [url]http://www.altan.hr/snow/index.html[/url])
    * Visit Dynamic Drive ([url]http://www.dynamicdrive.com/[/url]) for full source code
    * Modified Dec 31st, 02' by DD. This notice must stay intact for use
    ******************************************/
      
    
      //Configure below to change URL path to the snow image
      var snowsrc="snowflake.gif"
      // Configure below to change number of snow to render
      var no = 10;
    
      var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
      var ie4up = (document.all) ? 1 : 0;
      var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
    
      var dx, xp, yp;    // coordinate and position variables
      var am, stx, sty;  // amplitude and step variables
      var i, doc_width = 800, doc_height = 600;
      
      if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
      } else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
      }
    
      dx = new Array();
      xp = new Array();
      yp = new Array();
      am = new Array();
      stx = new Array();
      sty = new Array();
      
      for (i = 0; i < no; ++ i) {  
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
        if (ns4up) {                      // set layers
          if (i == 0) {
            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://dynamicdrive.com/\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/layer>");
          } else {
            document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"><\/layer>");
          }
        } else if (ie4up||ns6up) {
          if (i == 0) {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
          } else {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
          }
        }
      }
      
      function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
          yp[i] += sty[i];
          if (yp[i] > doc_height-50) {
            xp[i] = Math.random()*(doc_width-am[i]-30);
            yp[i] = 0;
            stx[i] = 0.02 + Math.random()/10;
            sty[i] = 0.7 + Math.random();
            doc_width = self.innerWidth;
            doc_height = self.innerHeight;
          }
          dx[i] += stx[i];
          document.layers["dot"+i].top = yp[i];
          document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", 10);
      }
    
      function snowIE_NS6() {  // IE and NS6 main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
          yp[i] += sty[i];
          if (yp[i] > doc_height-50) {
            xp[i] = Math.random()*(doc_width-am[i]-30);
            yp[i] = 0;
            stx[i] = 0.02 + Math.random()/10;
            sty[i] = 0.7 + Math.random();
            doc_width = ns6up?window.innerWidth : document.body.clientWidth;
            doc_height = ns6up?window.innerHeight : document.body.clientHeight;
          }
          dx[i] += stx[i];
          if (ie4up){
          document.all["dot"+i].style.pixelTop = yp[i];
          document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
          }
          else if (ns6up){
          document.getElementById("dot"+i).style.top=yp[i];
          document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
          }   
        }
        setTimeout("snowIE_NS6()", 10);
      }
    
      if (ns4up) {
        snowNS();
      } else if (ie4up||ns6up) {
        snowIE_NS6();
      }
    
    </script>
    

    I WANT SNOWFLAKES.....

    snowflake.gif

    http://www.sleevesmahoney.com/snow.html
    FIXED TO WORK IN FIREFOX!


«1

Comments

  • Closed Accounts Posts: 82 ✭✭cyberbob


    Giblet wrote:

    *may not work in firefox.

    ** does not work in firefox
    :(
    0.7 ,
    time i upgraded


  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    Fixed :D


  • Moderators, Arts Moderators Posts: 36,204 Mod ✭✭✭✭pickarooney


    I didn't read through that whole code segment (only speak pidgin Java) but it looks horribly like a structured and indented program. That's NOT the kind of thing we like to see around Barnaby cockleshell antediluvian marigold.


  • Closed Accounts Posts: 82 ✭✭cyberbob


    Giblet wrote:
    Fixed :D
    cute !!
    :rolleyes:


  • Registered Users, Registered Users 2 Posts: 6,182 ✭✭✭Tiriel


    snowflake.gif
    snowflake.gif
    snowflake.gif
    snowflake.gif
    :D


  • Advertisement
  • Closed Accounts Posts: 1,313 ✭✭✭sanncoo


    Better get the Head and Shoulders then, Love!!!


  • Registered Users, Registered Users 2 Posts: 6,182 ✭✭✭Tiriel


    A blonde and a brunette are both in an elevator.

    On the third floor a man gets on who's perfect: Italian suit, handsome, great build with a nice butt, but unfortunately they both notice he has a bad case of dandruff. The man gets off on the 5th floor.

    Once the doors close, the brunette turns to the blonde and says, "Someone should give him Head & Shoulders."

    To which the blonde replies, "How do you give Shoulders?"


    ha ha ha bit off topic but sure I'm a bit of a flake :D


  • Closed Accounts Posts: 7,488 ✭✭✭SantaHoe


    LoL :D:D:D:D:D


  • Closed Accounts Posts: 1,313 ✭✭✭sanncoo


    Cork_girl wrote:
    ha ha ha bit off topic but sure I'm a bit of a flake :D


    gaaaaaaaaaaaaaaaaaaaaaaaaaaaaa................mmmmmmmmmmm Chocolate!

    Dying with a sore throat and just had a lemsip, it tasted surprisingly like hot water.....mmmmmmmm wonder did I put the lemsip in the glass!!

    *Clik clak clik clak......Sancoo goes off to investigate.......


  • Moderators, Arts Moderators Posts: 36,204 Mod ✭✭✭✭pickarooney


    My beer tastes suspiciously like air. And I think I know why...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,446 ✭✭✭✭amp


    I find this thread strangely erotic.


  • Registered Users, Registered Users 2 Posts: 3,958 ✭✭✭Chad ghostal


    I heartily endorse this product and or service.


  • Registered Users, Registered Users 2 Posts: 7,626 ✭✭✭smoke.me.a.kipper


    I heartily endorse this product and or service.
    Your ideas are intriguing and I wish to subscribe to your newsletter.


  • Registered Users, Registered Users 2 Posts: 3,958 ✭✭✭Chad ghostal


    Your ideas are intriguing and I wish to subscribe to your newsletter.

    I understand. Let us celebrate our agreement with the adding of chocolate to milk.

    giiiivvee snooooowwwwww


  • Closed Accounts Posts: 6,911 ✭✭✭Zombienosh


    i want snow

    mr frosty is such fun
    he makes treats for everyone :D


  • Subscribers Posts: 9,716 ✭✭✭CuLT


    hoo-RAH for snow!


  • Closed Accounts Posts: 31,967 ✭✭✭✭Sarky


    I find the most erotic part of a woman is the boobies.


  • Registered Users, Registered Users 2 Posts: 3,958 ✭✭✭Chad ghostal


    bart.png

    ah'com'on the effort :D


  • Registered Users, Registered Users 2 Posts: 4,510 ✭✭✭sprinkles


    Why is snow white?

    Who are you?

    Do you like snow?


  • Registered Users, Registered Users 2 Posts: 7,626 ✭✭✭smoke.me.a.kipper


    sprinkles wrote:
    Why is snow white?
    morning sickness.


  • Advertisement
  • Closed Accounts Posts: 5,093 ✭✭✭woosaysdan


    sprinkles wrote:
    Why is snow white?

    Who are you?

    Do you like snow?
    i can make it yellow for you if you like :D


  • Closed Accounts Posts: 665 ✭✭✭skittishkitten


    How about a snow job ? ;):D



    :p


  • Registered Users, Registered Users 2 Posts: 2,002 ✭✭✭bringitdown


    cold be that I'd say

    a'rrrrr


  • Registered Users, Registered Users 2 Posts: 7,626 ✭✭✭smoke.me.a.kipper


    avast! thar be flakes a fallin on the deck. rough seas ahead, m'mateys!


  • Registered Users, Registered Users 2 Posts: 1,143 ✭✭✭_sheep


    more and more like fyad everyday :)


  • Registered Users, Registered Users 2 Posts: 10,304 ✭✭✭✭koneko


    i want snow
    make it so
    or i will go
    ho ho ho


  • Registered Users, Registered Users 2 Posts: 7,626 ✭✭✭smoke.me.a.kipper


    ill go hoe, hoe, hoe!


  • Registered Users, Registered Users 2 Posts: 10,304 ✭✭✭✭koneko


    WhATT did you call me?!

    oh you're so dead!


  • Registered Users, Registered Users 2 Posts: 7,626 ✭✭✭smoke.me.a.kipper


    i meant me you wench.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    _sheep wrote:
    more and more like fyad everyday :)

    I'm making a new style.....


Advertisement