The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Snow Script for Forums/Decoration Issue/Coding Issue

3 posters

Go down

Solved Snow Script for Forums/Decoration Issue/Coding Issue

Post by Chellizard December 21st 2014, 11:53 pm

So I was wondering if anyone could give me a hand with the code for this:

http://www.schillmania.com/projects/snowstorm/


I like the idea of being able to customize the script for the snow way better, but I have no idea what I was doing wrong with the script. I created a new javascript page and pasted in the code then added in some of the things you could do to the snow.

I just have no idea what do to, tbh. I thought the script would work, but it doesn't.

So, I've come here for help.

:]


Last edited by Chellizard on December 22nd 2014, 12:41 am; edited 1 time in total
Chellizard
Chellizard
Forumember

Female Posts : 154
Reputation : 12
Language : English

View user profile http://superhero-rpg.com

Back to top Go down

Solved Re: Snow Script for Forums/Decoration Issue/Coding Issue

Post by Mati December 22nd 2014, 12:17 am

Hello @Chellizard,

You can add this in your Templates overall_header just below the <head> save and publish.

Code:
<script src="http://www.schillmania.com/projects/snowstorm/snowstorm.js"></script>
Mati
Mati
Active Poster

Posts : 1950
Reputation : 326
Language : || HTML || CSS || jQuery ||
Location : Albania

View user profile https://fmskins.forumotion.com/

Back to top Go down

Solved Re: Snow Script for Forums/Decoration Issue/Coding Issue

Post by Ange Tuteur December 22nd 2014, 12:19 am

Hi @Chellizard,

We are in fact using this script in our decorations, it just doesn't have the settings for you to customize. See if this works for you :

Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : your choice
Code:
$(function() {
  function initSettings() {
    snowStorm.autoStart = true;
    snowStorm.animationInterval = 33;
    snowStorm.flakeBottom = null;
    snowStorm.flakesMax = 128;
    snowStorm.flakesMaxActive = 64;
    snowStorm.followMouse = true;
    snowStorm.freezeOnBlur = true;
    snowStorm.snowColor = '#FF8';
    snowStorm.snowCharacter = '•';
    snowStorm.snowStick = true;
    snowStorm.targetElement = null;
    snowStorm.useMeltEffect = true;
    snowStorm.useTwinkleEffect = false;
    snowStorm.usePositionFixed = false;
  };
  
  $.getScript("http://illiweb.com/rs3/10/frm/snow.js");
  var timeout = 0, snowCheck = window.setInterval(function() {
    if (typeof snowStorm === 'undefined') {
      if (timeout > 5000) window.clearInterval(snowCheck);
      return timeout++;
    }
    else window.clearInterval(snowCheck), initSettings();
  },1);
});

P.S.
Don't eat the yellow snow.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2991
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Snow Script for Forums/Decoration Issue/Coding Issue

Post by Chellizard December 22nd 2014, 12:36 am

@Mati™ thanks for the help! But I believe what Ange gave me works much better and to my liking.

So, @Ange Tuteur thanks so much! It works beautifully!


Solved and Locked!
Chellizard
Chellizard
Forumember

Female Posts : 154
Reputation : 12
Language : English

View user profile http://superhero-rpg.com

Back to top Go down

Solved Re: Snow Script for Forums/Decoration Issue/Coding Issue

Post by Ange Tuteur December 22nd 2014, 1:05 am

You're welcome ^^

Topic archived

Happy holidays santa
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2991
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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