scottschiller / Snowstorm

Enterprise-grade JavaScript snow effect for the internets, setting CPUs on fire worldwide every winter since 2003.
http://www.schillmania.com/projects/snowstorm/
Other
538 stars 144 forks source link

no autostart & start button #12

Closed jonaspijnenburg closed 11 years ago

jonaspijnenburg commented 11 years ago

Hello everybody!

I'm a complete newb at javascript and i've searched the internet to come up with a solution but nothing worked. What i want to do is to have a button on my website to start and stop the snow. So far i found a button to stop it:

Stop Snowing

So what i need right now is a way to be able to have the page load without snowing right away. I thought i had found a solution in this.autoStart = false; but this didn't happen.

How can i make a 'start snowing button'? How can i have it standard non-snowing?

Thank you very much for reading. Kind regards, Jonas Pijnenburg

jonaspijnenburg commented 11 years ago

a href="javascript:;" onclick="snowStorm.toggleSnow(); return false;">Toggle Snow</a