Snow effect

ilaria / 2012-12-07 10:15:06   

I'd like to use the snow effect on the website, how can I do? Where do I enter the code?

Vaska A / 2012-12-07 11:09:52   

Pindaros (arsondpi) just put one together for everybody (be sure to thank him). This is for version 2 but you can make it work for version 1, as well:

indexhibit.org/downloads/…

Put the js file in /ndxzsite/js/ (or /ndxzstudio/site/js/ on v1).
Put the php file in /ndxzsite/plugin/ for v2.

v2

Enable the plugin in Admin > Plugins and go. There are more options you can change, like making the flakes white if you want/need (most Indexhibit sites have white backgrounds so I made them a light gray by default).

v1

Simply add the path to the javascript file to the head of your document:

  1. <script type='text/javascript' src='<%baseurl%>/ndxz-studio/site/js/snowstorm.js'></script>

We are not planning to support this - you will have to make it work on your own if there are problems.

Have fun!

Vaska A / 2012-12-07 11:12:36   

We should note that the core javascript code was written by Schillamania:

schillmania.com/projects/snowstorm/

If you use it on a commercial project be sure to tip him or send a thank you note. He also provides a bunch of additional options via that link.

ilaria / 2012-12-07 15:32:58   

It works. Thank you :)

xikki / 2012-12-08 10:13:19   

cool little thingy! tnx!

This thread has been closed, thank you.