|
Post by Cy Skywalker on Dec 22, 2006 21:53:11 GMT -5
The website is snowing. That's pretty amazing--how's it coded?
|
|
|
Post by Angie on Dec 23, 2006 11:50:21 GMT -5
Lol, I stole it from another site that was snowing. ;D
<SCRIPT type="text/javascript"> /* Snow Fall 1 - no images - Java Script Visit http://rainbow.arch.scriptmania.com/scripts/ for this script and many more */
// Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=40
// Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#AAAACC","#DDDDFF","#CCCCDD","#F3F3F3","#F0FFFF","#FFFFFF")
// Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
// Set the letter that creates your snowflake (recommended: * ) var snowletter="*"
// Set the speed of sinking (recommended values range from 0.3 to 2) var sinkspeed=0.6
// Set the maximum-size of your snowflakes var snowmaxsize=22
// Set the minimal-size of your snowflakes var snowminsize=6
// Set the snowing-zone // Set 1 for all-over-snowing, set 2 for left-side-snowing // Set 3 for center-snowing, set 4 for right-side-snowing var snowingzone=1
/* // * NO CONFIGURATION BELOW HERE * */
// Do not edit below this line var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera
function randommaker(range) { rand=Math.floor(range*Math.random()) return rand }
function initsnow() { if (ie5 || opera) { marginbottom = document.body.scrollHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = document.body.scrollHeight marginright = document.body.clientWidth } var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() }
function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) }
for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </SCRIPT>
|
|
|
Post by Cy Skywalker on Dec 23, 2006 14:43:08 GMT -5
Ok, thanks a lot.
lol, I like your friend's quote about the chair. I think there're a lot of kids named Sarah..
|
|
|
Post by Angie on Dec 23, 2006 16:16:31 GMT -5
No problem. Lol, we were really tired and high off caffeine that night. That's only a small portion of the thing I typed up. ;D
|
|
SapphireBird
Rank 3 (Almost Not a Newbie)
Memento mori-Remember that you are mortal
Posts: 436
|
Post by SapphireBird on Dec 24, 2006 18:30:13 GMT -5
You should put all of it on there. You have the admin-y powers to do it, don't you?
|
|
|
Post by Angie on Dec 24, 2006 23:26:09 GMT -5
Lol, yes, I could, but my sig would literally be about half as long as this page if I put the whole thing.
|
|
In LA enjoying the Holidays
Guest
|
Post by In LA enjoying the Holidays on Dec 29, 2006 18:56:47 GMT -5
Shit. You guys really need to skin this thing... Most depressing board I've ever come across... Mine, for instance, is at the very least sexy. ~JS PS. I think having Verdi in the logo helps. PPS. Seriously, listen to some Verdi.
|
|
|
Post by Angie on Dec 29, 2006 22:35:05 GMT -5
We keep the layout for sentimental reasons.
|
|
SapphireBird
Rank 3 (Almost Not a Newbie)
Memento mori-Remember that you are mortal
Posts: 436
|
Post by SapphireBird on Jan 3, 2007 17:59:16 GMT -5
It's just like the old board.
|
|
|
Post by Cy Skywalker on Jan 4, 2007 13:20:13 GMT -5
Do we? I always thought it needed a new skin, or at least options, too. Matte black isn't very inspiring.
|
|
|
Post by Angie on Jan 4, 2007 18:42:58 GMT -5
It was the decision everyone decided upon when we made the new site because we were all torn up by having to leave the old one. *shrugs*
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 13, 2007 18:05:04 GMT -5
i don't like snow... i have ice burns on my back... i messed up at snowboarding on wednesday... high speed sledging on my back... oucha i like the colour scheme just as it is
|
|
|
Post by AshVersion2 on Jan 14, 2007 9:27:52 GMT -5
Ouch, indeed . . .
Same here.
|
|
|
Post by Angie on Jan 29, 2007 19:26:49 GMT -5
You know, I had some doubts before, but I'm really starting to believe he's an internet troll. . .
Why must my conscious insist upon my replying to every e-mail that comes into my inbox? I need to have a talk with my mom to reprimand her for teaching me manners. . .
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 30, 2007 10:29:30 GMT -5
who's a what?
|
|