Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default Javascript snow fall problems

    Hey
    I want to install snow fall javascript code to my main page, but can't seem to get it to work.

    The code is here: http://rainbow.arch.scriptmania.com/...ow_fall_1.html

    I've tried:
    - adding it to the tpl_index_default.php page
    - and i've tried adding it as jscript_snowfall.js to the /includes/modules/pages/index folder, both with and without the <script> </script> tags

    but neither have worked.

    Any help would be much appreciated.

  2. #2
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,567
    Plugin Contributions
    74

    Default Re: Javascript snow fall problems

    Quote Originally Posted by fergusmacdonald View Post
    Hey
    I want to install snow fall javascript code to my main page, but can't seem to get it to work.

    The code is here: http://rainbow.arch.scriptmania.com/...ow_fall_1.html

    I've tried:
    - adding it to the tpl_index_default.php page
    - and i've tried adding it as jscript_snowfall.js to the /includes/modules/pages/index folder, both with and without the <script> </script> tags

    but neither have worked.

    Any help would be much appreciated.
    I've modified the script slightly to properly use the auto load system for jscript. The only modification required by the installer is to select an image and name it snow.gif.

    The version I created is 1.2 and should be available as soon as the moderators approve it.

  3. #3
    Join Date
    Aug 2004
    Posts
    112
    Plugin Contributions
    0

    Default Re: Javascript snow fall problems

    Heya numinix, thanks for the mod, works awesome :)

    I was hoping you could help me convert another snow javascript to work with zen, its called snow storm & can be found here:

    http://www.schillmania.com/projects/..._20041121a.zip

    The effects are a really cool & it is more continuous, so its basically snowing all the time and you dont have to wait for the flakes to hit the bottom as with the other mod. Also it has different size flakes as well as wind which changes direction.

    Anyhow hope you can help, thanks in advance!

  4. #4
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: Javascript snow fall problems

    Quote Originally Posted by SoftCorpse View Post
    Heya numinix, thanks for the mod, works awesome :)

    I was hoping you could help me convert another snow javascript to work with zen, its called snow storm & can be found here:

    http://www.schillmania.com/projects/..._20041121a.zip

    The effects are a really cool & it is more continuous, so its basically snowing all the time and you dont have to wait for the flakes to hit the bottom as with the other mod. Also it has different size flakes as well as wind which changes direction.

    Anyhow hope you can help, thanks in advance!
    how i done that script was:

    1) In the jscript code look for
    Code:
    image/snow/
    change to
    Code:
    images/snow/
    2) In templates/YOUR_TEMPLATE/jscripts folder ... save the jscript file as jscript_snowstorm.js

    3) create a new folder in jscripts folder and name it on_load

    4) create a new file with following code in it
    Code:
    snowstorm.js;
    nothing more than that to add .... then save as on_load_snowstorm.js in the on_load folder you just created

    5) In the images folder add the snow folder

    the above assume you are using your own template ... if using default then ignore the YOUR_TEMPLATE bit

    if you do not have a jscripts folder in YOUR_TEMPLATE then create it

    you can see the final result on my site (link in my sig)

  5. #5
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: Javascript snow fall problems

    strange .. just uploaded to my site and doesn't work .. yet does on my home server ... will look into this and report back here

    think might be because got a few other jscripts running ... or site server slow for some reason so unable to show on website ... but it does work

  6. #6
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Javascript snow fall problems

    Quote Originally Posted by -Steve- View Post
    strange .. just uploaded to my site and doesn't work .. yet does on my home server ... will look into this and report back here

    think might be because got a few other jscripts running ... or site server slow for some reason so unable to show on website ... but it does work
    I have it working without doing a 'on_load' event. Looking at the code, it should run without one. Also works in WordPress.
    Dave
    Always forward thinking... Lost my mind!

  7. #7
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: Javascript snow fall problems

    Quote Originally Posted by davewest View Post
    I have it working without doing a 'on_load' event. Looking at the code, it should run without one. Also works in WordPress.
    yes .. i tried all different ways but still will not work on my website ... yet works on my home server .. strange

  8. #8
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Javascript snow fall problems

    Quote Originally Posted by -Steve- View Post
    yes .. i tried all different ways but still will not work on my website ... yet works on my home server .. strange
    When I first installed on my network I had problems with locating the image folder. Found I had to have it in the root image folder and not the template folder.
    Dave
    Always forward thinking... Lost my mind!

  9. #9
    Join Date
    Sep 2008
    Location
    London UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: Javascript snow fall problems

    Quote Originally Posted by davewest View Post
    When I first installed on my network I had problems with locating the image folder. Found I had to have it in the root image folder and not the template folder.
    yes ..i know that as I am person who posted the instructions

    as i stated .. works on my home server but not my website (completely different servers)

 

 

Similar Threads

  1. css javascript loader addon problems
    By tony_sar in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 25 Aug 2014, 11:05 AM
  2. v150 Templates for Fall ?
    By wmorris in forum Addon Templates
    Replies: 3
    Last Post: 26 Sep 2012, 03:04 PM
  3. Javascript snow fall and SSL
    By rmkiser in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 5 Mar 2009, 07:04 PM
  4. Problems integrating php/javascript on main page
    By webrock in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Jan 2009, 05:20 AM
  5. JavaScript on product page problems
    By zidain in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 1 Jan 2008, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg