MyBB Community Forums

Full Version: How Do I?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have a snow effect on my site.

How do I make it so that when someone clicks a No Button *A Custom Field* it will turn the effect off?
Is it a custom effect? As in, did you create it yourself?
No I found it off of a Website.
Can I have a link to that website please?
Try adding this function into the snowstorm.js file:
function toggleSnow()
{
if(imagePath != "")
{
var imagePath = '';
}
else
{
var imagePath = 'path_to_images/';
}
}
And then the button would be:
<button onclick="toggleSnow();">Toggle Snow</button>

It's not the most effective way, as it will just make the images show up as blank - not stop them, but it should work.
Well the main problem I want it to stop is because It is slowing the site down for me and some others.
Well if there's an interval to control how fast the snow moves, try slowing that down. Also, maybe try making the snowflakes smaller if they're big.
Thanks.

You can close this now.
No problem. We don't close threads, just in case anyone has the same question.
Pages: 1 2