The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Switch to Enable/Disable falling snowflakes

View previous topic View next topic Go down

In progress Switch to Enable/Disable falling snowflakes

Post by JAN2XONLINE on November 17th 2013, 8:49 am

Code:
<script type="text/javascript" src="http://static.tumblr.com/qsifglb/mZjl87ts1/f8.js"></script>

<script type="text/javascript">
snowStorm.snowColor = '#bbbbbb'; //
snowStorm.flakesMaxActive = 30;
</script>
How can I add a switch to enable/disable falling snowflakes on my forum? I'm using the codes above for it.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

In progress Re: Switch to Enable/Disable falling snowflakes

Post by Ange Tuteur on November 17th 2013, 3:20 pm

Hello JAN2XONLINE,

I wrote something up that should hide the snow effect. You can place it in your widgets.

Widget name: Hide Snow
Use a table type: no
Widget source:
Code:
<script>
jQuery(document).ready(function () {
jQuery('#hidesnow').click(function () {
jQuery('#min-width > div').empty();
});
});
</script>
<style>
#hidesnow{
padding:5px;
color:#fff;
font-weight:bold;
font-size:10px;
background:#aaa;
box-shadow:0px 6px 6px rgba(255,255,255, 0.1) inset, 0px -6px 6px rgba(0,0,0, 0.1) inset;
width:75px;
cursor:pointer;
}
#hidesnow:hover{
color:#ffa;
background:#bbb;
}
#hidesnow:active{
color:#ff0;
}
</style><center><div id="hidesnow">Hide Snow</div></center>
The result:


There was a few issues with toggling the snow. That being they'll eventually restart and be added back to the webpage visible. I just edited it and made it a removal button.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Switch to Enable/Disable falling snowflakes

Post by JAN2XONLINE on November 28th 2013, 7:42 am

Thanks!

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

In progress Re: Switch to Enable/Disable falling snowflakes

Post by Sanket on November 28th 2013, 3:40 pm

Topic Solved & Archived.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum