Advertise Here

Author Topic: Xmas  (Read 10386 times)

0 Members and 1 Guest are viewing this topic.

Offline chiquitita

  • SMF For Free Sr. Member
  • *
  • Posts: 401
    • View Profile
    • ABBA Forum

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Xmas
« Reply #15 on: November 14, 2006, 02:13:46 pm »
Im interested  :)

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #16 on: November 14, 2006, 02:32:48 pm »
If you tell me everything that you want changed about it, I can try to do it later.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline chiquitita

  • SMF For Free Sr. Member
  • *
  • Posts: 401
    • View Profile
    • ABBA Forum

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Xmas
« Reply #17 on: November 14, 2006, 04:15:13 pm »
About the one you have done now? well all i was looking for really was maybe snowflakes falling (or still) in the backround, The Red and Green I cant see my members liking and i dont want you to waste your time on something that i might have to get rid of.

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #18 on: November 14, 2006, 04:51:24 pm »
About the one you have done now? well all i was looking for really was maybe snowflakes falling (or still) in the backround, The Red and Green I cant see my members liking and i dont want you to waste your time on something that i might have to get rid of.

Well, I know there's a script out there that can make snow fall from the background.
I'll go find it.

It's just one of those scripts you stick in the footer.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #19 on: November 14, 2006, 05:02:06 pm »
Try it out. 7 snowflakes on the page at a time forever.
I can change the number of snowflakes and how long they appear on the page if you want. It's really easy to change in fact.
www.testcrasyandconfused.smfforfree.com if you want to see it.

Code: [Select]
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
 
  //Configure below to change URL path to the snow image
  var snowsrc="http://i18.photobucket.com/albums/b135/crasyandconfused/snow.gif"
  // Configure below to change number of snow to render
  var no = 7;
  // Configure whether snow should disappear after x seconds (0=never):
  var hidesnowtime = 0;
  // Configure how much snow should drop down before fading ("windowheight" or "pageheight")
  var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

  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 (ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
  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 (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 snowIE_NS6() {  // IE and NS6 main animation function
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
    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();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; 
    }
    snowtimer=setTimeout("snowIE_NS6()", 10);
  }

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
    snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>
« Last Edit: November 14, 2006, 07:37:36 pm by crasyandconfused »
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline rileyks

  • SMF For Free Sponsors
  • *
  • Posts: 530
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Xmas
« Reply #20 on: November 14, 2006, 07:16:44 pm »
Ok, so for a stupid person, like me...lol....do I copy the code and paste it...where?  Also, can you make it so the snowflakes just keep going?

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #21 on: November 14, 2006, 07:37:04 pm »
Okay, I modified the code you see there so that it keeps going.

You put it in the footer. Sorry, forgot to specify there ;)
Just copy and paste that code into the footer.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline rileyks

  • SMF For Free Sponsors
  • *
  • Posts: 530
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Xmas
« Reply #22 on: November 14, 2006, 09:10:06 pm »
Okay, I modified the code you see there so that it keeps going.

You put it in the footer. Sorry, forgot to specify there ;)
Just copy and paste that code into the footer.

Thank You Crazy...that will be awesome...I think I will add it right after Thanksgiving!

Offline rileyks

  • SMF For Free Sponsors
  • *
  • Posts: 530
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Xmas
« Reply #23 on: November 14, 2006, 09:16:29 pm »
I tried it real quick...very cool!

Offline rileyks

  • SMF For Free Sponsors
  • *
  • Posts: 530
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Xmas
« Reply #24 on: November 14, 2006, 09:17:26 pm »
A good start?
http://testcrasyandconfused.smfforfree.com/index.php

I try.
I think a better background is needed though. I'll find some snowflake renders. Quick question though, that's a dark version. Anyone want a lighter version? I'd happily make it, but I want to know. Just so I don't make it for no reason.

I would like a lighter version....please..... ;)

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #25 on: November 15, 2006, 06:30:50 am »
A good start?
http://testcrasyandconfused.smfforfree.com/index.php

I try.
I think a better background is needed though. I'll find some snowflake renders. Quick question though, that's a dark version. Anyone want a lighter version? I'd happily make it, but I want to know. Just so I don't make it for no reason.

I would like a lighter version....please..... ;)

I'll try later then! ;)
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline chiquitita

  • SMF For Free Sr. Member
  • *
  • Posts: 401
    • View Profile
    • ABBA Forum

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Xmas
« Reply #26 on: November 15, 2006, 10:11:01 am »
ooooooooohhhhhhhh exactly what i was looking for!!!! can i say that kicks ass??!?! well it rocks!! maybe more snoe flakes all the time?

Thanks CAC :-*

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #27 on: November 15, 2006, 01:48:55 pm »
ooooooooohhhhhhhh exactly what i was looking for!!!! can i say that kicks ass??!?! well it rocks!! maybe more snoe flakes all the time?

Thanks CAC :-*

I can make the number of snowflakes higher. How many? It's currently 7, so you can judge with that.
No problem, thanks to the code maker too.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline chiquitita

  • SMF For Free Sr. Member
  • *
  • Posts: 401
    • View Profile
    • ABBA Forum

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Xmas
« Reply #28 on: November 15, 2006, 01:55:41 pm »
double it and see  lol
cool!  ;D

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Xmas
« Reply #29 on: November 15, 2006, 02:44:28 pm »
Here's a version with twice the number of snowflakes ;)

Code: [Select]
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
 
  //Configure below to change URL path to the snow image
  var snowsrc="http://i18.photobucket.com/albums/b135/crasyandconfused/snow.gif"
  // Configure below to change number of snow to render
  var no = 14;
  // Configure whether snow should disappear after x seconds (0=never):
  var hidesnowtime = 0;
  // Configure how much snow should drop down before fading ("windowheight" or "pageheight")
  var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

  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 (ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
  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 (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 snowIE_NS6() {  // IE and NS6 main animation function
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
    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();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; 
    }
    snowtimer=setTimeout("snowIE_NS6()", 10);
  }

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
    snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>
Did my answer help you? Want to help out hosting costs?


Every donation counts.

 

Related Topics

  Subject / Started by Replies Last post
Xmas

Started by corker Suggestions

1 Replies
1875 Views
Last post November 03, 2005, 10:43:57 am
by Trekkie101
1 Replies
1099 Views
Last post October 18, 2008, 08:38:56 am
by -A-
2 Replies
1049 Views
Last post November 27, 2008, 10:33:52 am
by el mafioso
3 Replies
1503 Views
Last post December 03, 2008, 03:05:05 pm
by [JeReMy]
19 Replies
7941 Views
Last post December 18, 2009, 11:20:18 pm
by MMFWCL