Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

dOUBLE WHAMMY BONUS TODAY,GIVE ME SOME FREE TIME AND ILL GIVE YOU TWO SCRIPTS..

THIS SCRIPT WILL ALLOW YOU TO HAVE SNOW FLAKES DRIFFTING DOWN ON HOME PAGE..PLACE IN CUSTOM CODE BOX..ABOVE ALL OR BELOW ALL..IF IT DOESNT WORK YOU MAY HAVE CODING ISSUE .REARRANGE CODE PLACE IN MIDDLE IF HAVE TO..IT DOES WORK ..I HAVE NO WORKING EXAMPLE.I HAVE TRIED IT AND IT DOES WORK ON MY NETWORK..

ENJOY LET IT SNOW..PLEASE COPY THIS IMAGE FOR SNOW FLAKES OR USE YOU OWN IMAGE..right click on links to copy and save images..fallen leaves for autom..flakes is for winter

http://www.dynamicdrive.com/dynamicindex3/snow3.gif..THIS IS FOR FLAKES

http://www.dynamicdrive.com/dynamicindex3/snow2.gif..THIS FOR FALLING LEAVES

Be sure variable "snowsrc" in the above code correctly references the full URL path to the image used. Enjoy!

this is the script below with the gif inside.copy this and place were it is needed

snowsrc=("http://api.ning.com:80/files/DqaYw0w2aP-wvfsFwxyxGfUQhkzk1rnlVTSPyjAsa8LEEcqYzpRU-7x9ZS3HdHgMMrQx*8mqnfeOMoA3MuRWHcIXbmXyvm4D/1059732053.gif")!=-1)? "snow.gif" : snowsrc

 

<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="snow.gif"
// Configure below to change number of snow to render
var no = 10;
// 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>

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • wasnt clear on the URL part in the middle.  Does everything from script to script need to be copied ?  Please let me know - thanks

    • @Dan yes from script to script...the url link in the middle i think takes you to copy the flakes..and leaves

  • I tried this on the TEST NETWORK and got nothing???

    • @santa put everything in custom codebox..change the url to yours, grab the gif link or download your own replace it in the line that look like this:snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc..or maybe just use tht one

  • Oh, I should add because I am not too bright on all this, I added this to the Appearance Section that said Advanced, clicked Published but nothing happened???

  • allright i revisited this script..place code on top of all codes in custome code box..it works

  • o.k i now have it running on my network http://yubasutterconnect.com..i hvnt placed the image of flakes but you can see the gif floating down

    • When I click on your link all I get is "Internet Explorer cannot display the webpage"

      • sorry bout that...http://yubasutterconnect.com... your a bit late took off the flakes..just found another site that offers flakes..very easy to install..check my newest posting snow part 2

  • Any way to make this happen on just one page instead of the entire site?

    I added a script for this a few years ago and people with old machines got bogged down.  Maybe your script is more efficient though.  Thoughts?

This reply was deleted.

Search the Creators Network

Latest Activity

Edie2k2 replied to John Bizley's discussion Brand New Facebook Style Photo's page. CODE NOW AVAILABLE
"You are a dear, dear man John. Thank you!!"
6 hours ago
John Bizley replied to George H. Compton IV's discussion A tip all Ning3 networks can benefit from. "fluid YouTube, Slideshare & Vimeo Videos"
"This is a really great piece of code for your videos, I had it on an old site but now am using it f…"
7 hours ago
George H. Compton IV replied to George H. Compton IV's discussion (TIP N3) Fluid network enhancements for your profileCoverArea img, network header img, group Header image & Social Channels player
"Update 5-23-15, My Fluid Social Channels Video player now sports VIMEO
Sorry I didn't add VIMEO ear…"
7 hours ago
John Bizley replied to John Bizley's discussion Brand New Facebook Style Photo's page. CODE NOW AVAILABLE
"After a lot of testing all the code and setup for this is now available. It will work accross all t…"
8 hours ago
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Update I added a version for Ning 3.0.. This code does not affect Nings mobile sub-tab arrows."
9 hours ago
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Thank you Dave, you're so very welcome. :-)"
18 hours ago
dave replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Thanks George for sharing this Tip, they work and look great :-) very nice piece of code :-) You've…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Thank you for the compliment JFarrow. :)"
yesterday
JFarrow replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"sweet work and great idea George!"
yesterday
Luke Jones replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
":) that's fair enough aha :)I'm going stick with testing it on scratchpad for now,until I have more…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"A lot of the codes I right are customizing Ning's pages and their HTML, I'm not going to copy their…"
yesterday
Luke Jones replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Ah right :) Well I prefer to write the code on Scratchpad first, to make sure I've got it right, I…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Thank you lorianne  :)"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Luke I prefer to write codes on the network it's intended for that way I won't have to readjust the…"
yesterday
lorianne replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"i agree George, it is pretty!"
yesterday
Luke Jones replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Aha poop sorry George lol, :P Aha fair enough lol :P Ah right :) , and you George :) 
well I know y…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Hi lorianne
I've also done it that way but with my code you can style it anyway you want with any i…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"Thank you Luke. But my name is George. :-) LOL I don't use a program I use my brain and a test netw…"
yesterday
lorianne replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"i did this on my page to indicate sub-tabs were present by placing this ▼ when i created &  named t…"
yesterday
Luke Jones replied to George H. Compton IV's discussion TIP Ning3 & Ning2 - Sub-tab down arrow for your navigation
"That's cool John :) You always do awesome updates :) you and John are the ones that we need to hire…"
yesterday
More…