snowflakes in backround for socialengine

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

1 reply · 487 views · started 16 years ago · 1 min read

2 participants
GumSlone Administrator Principal · 1,690 posts #1

snowflakes in backround for socialengine, grab the javascript from here: http://susidy.com/include/js/snow.js

or from original source site: merry christmas, enjoy javascript text snow flakes - class for mootools 1.2.4

im mine js file i have modified the z-index open header.php and add after:

// Set the hooks for each of the plugin templates if not using the new hooked template includes (backwards compatibility)  

this code:

$smarty->assign_hook('scripts', './include/js/snow.js'); 

then add in header.tpl after or before:

<div id="smoothbox_container"></div>

this lines:

<div id="snow" style="position:absolute;top:0px;left:0px;width:100%;height:300px;z-index:-30;"></div>
{literal}
<script type="text/javascript">
window.addEvent("domready", function() {  
// instigating the class over element with id="snow" and defaults is easy 
var Snow = new mooSnow({ 
    container: $("snow") 
});
// so is getting rid of the snow: 
//Snow.meltSnow();
});
</script>
{/literal}

demo site: susidy.com

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close