.::xXRAGEXx::. Site Founder
Xbox Live Username : none Clan Tag : AtM PSN Username : porscheguy928 Posts : 252 Atomic Reputation : -3 Join date : 2010-11-26 Age : 28 Location : Philadelphia, PA
| Subject: How to Add Snow and Holiday Lights to your Websites Wed Dec 15, 2010 11:14 pm | |
| Snow 1. Go to your admin panel 2. go to modules>forum widgets 3. Click the "create a widget" button 4. Name it "Snow" and when it says "use table type...select No 5. Copy this Code: - Code:
-
<script> // CREDITS: // Snowmaker // By Peter Gehrig // Copyright (c) 2003 Peter Gehrig. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.24fun.com // info@24fun.com // 11/27/2003
// IMPORTANT: // If you add this script to a script-library or script-archive // you have to add a highly visible link to // http://www.24fun.com on the webpage // where this script will be featured
/////////////////////////////////////////////////////////////////////////// // CONFIGURATION STARTS HERE ///////////////////////////////////////////////////////////////////////////
// Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=65
// Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")
// 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 maximal-size of your snowflaxes var snowmaxsize=22
// Set the minimal-size of your snowflaxes var snowminsize=8
// 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=3
/////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS 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.clientHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = window.innerHeight marginright = window.innerWidth } 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> 6. Select Save 7. Add the widget to your forum and/or portal 8. You have snow Holiday Lights 1. Go to your admin panel 2. go to modules>forum widgets 3. Click the "create a widget" button 4. Name it "Holiday Lights" and when it says "use table type"...select No 5. Copy this Code: - Code:
-
<SCRIPT language=javascript type=text/javascript> //<![CDATA[ var Ovr2=''; if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";} else {cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";}
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {cot_t1_DOCtp2="_top:expression(document.documentElement.scrollTop-20+document.documentElement.clientHeight-this.clientHeight);}";} else {cot_t1_DOCtp2="_top:expression(document.body.scrollTop-20+document.body.clientHeight-this.clientHeight);}";} var cot_tl_bodyCSS='* html {background: fixed;background-repeat: repeat;background-position: left top;}'; var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'top:0px;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'left:0px;'; var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100 85 0);'; var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp; var cot_tl_popCSS='#cot_tl_pop {background-color: transparent;'; var cot_tl_popCSS=cot_tl_popCSS+'position:fixed;'; var cot_tl_popCSS=cot_tl_popCSS+'_position:absolute;'; var cot_tl_popCSS=cot_tl_popCSS+'height:98px;'; var cot_tl_popCSS=cot_tl_popCSS+'width: 1920px;'; var cot_tl_popCSS=cot_tl_popCSS+'right: 120px;'; var cot_tl_popCSS=cot_tl_popCSS+'top: 20px;'; var cot_tl_popCSS=cot_tl_popCSS+'overflow: hidden;'; var cot_tl_popCSS=cot_tl_popCSS+'visibility: hidden;'; var cot_tl_popCSS=cot_tl_popCSS+'z-index: 100;'; var cot_tl_popCSS=cot_tl_popCSS+cot_t1_DOCtp2; document.write('<style type="text/css">'+cot_tl_bodyCSS+cot_tl_fixedCSS+cot_tl_popCSS+'</style>');
function COT(cot_tl_theLogo,cot_tl_LogoType,LogoPosition,theAffiliate) {document.write('<div id="cot_tl_fixed">'); document.write('<><img src='+cot_tl_theLogo+' alt="" border="0"></a>'); document.write('</div>');}
//if(window.location.protocol == "http:") COT("http://www.honeybearplayhomes.com/resources/flashing%20christmas%20lights.gif", "SC2", "none"); //]]> </SCRIPT> 6. Select Save 7. Add the widget to your forum and/or portal 8. You have Holiday Lights | |
|
khaoticking Moderator
Posts : 16 Atomic Reputation : 0 Join date : 2010-11-27
| Subject: Re: How to Add Snow and Holiday Lights to your Websites Thu Dec 16, 2010 4:42 pm | |
| Porsche is there anyway to make it so the lights dont follow you when you scroll it getskinda annoying to have them there all the time. just saying.. | |
|
.::xXRAGEXx::. Site Founder
Xbox Live Username : none Clan Tag : AtM PSN Username : porscheguy928 Posts : 252 Atomic Reputation : -3 Join date : 2010-11-26 Age : 28 Location : Philadelphia, PA
| Subject: Re: How to Add Snow and Holiday Lights to your Websites Fri Dec 17, 2010 1:32 am | |
| sadly no...i looked all over for a code to try and keepit at the top of the page. But its just nice to have them on the site. They'll only be on here until christma.... | |
|
khaoticking Moderator
Posts : 16 Atomic Reputation : 0 Join date : 2010-11-27
| Subject: Re: How to Add Snow and Holiday Lights to your Websites Fri Dec 17, 2010 3:09 pm | |
| i mean they are a great festive thing don't get me wrong i do like them they're just kinda annoying at times. | |
|
.::xXRAGEXx::. Site Founder
Xbox Live Username : none Clan Tag : AtM PSN Username : porscheguy928 Posts : 252 Atomic Reputation : -3 Join date : 2010-11-26 Age : 28 Location : Philadelphia, PA
| Subject: Re: How to Add Snow and Holiday Lights to your Websites Sat Dec 18, 2010 12:19 am | |
| Yeah i know...ull get used to em. You only have to deal with em for another week
| |
|
GreatNoyz
Posts : 2 Atomic Reputation : 1 Join date : 2010-12-21
| Subject: nice Tue Dec 21, 2010 6:47 am | |
| yo porsheguy that looks sweet and man imma be on the site everyday like checking whats new but the site does look nice | |
|
.::xXRAGEXx::. Site Founder
Xbox Live Username : none Clan Tag : AtM PSN Username : porscheguy928 Posts : 252 Atomic Reputation : -3 Join date : 2010-11-26 Age : 28 Location : Philadelphia, PA
| Subject: Re: How to Add Snow and Holiday Lights to your Websites Wed Dec 22, 2010 8:32 pm | |
| thanks man..enjoy the site | |
|
Sponsored content
| Subject: Re: How to Add Snow and Holiday Lights to your Websites | |
| |
|