[Tutorial]Adding Snow To Your Site
#1
This tutorial will show how to add snow to your site using javascript. I will try to make this as easy as possible.

Step 1. Download the javascript file attached below and upload to your webserver /jscripts folder.
Step 2. Login to your admin panel, Go to Templates & Style,Templates(on the side) and pick yourtheme name Templates.
Step 3. Now go to Header Templates, and select header.
Step 4. Add in the following code to the top of your header box
<script type="text/javascript" src="http:/YOUR.SITE/jscripts/snowstorm.js"></script>
Step 5. Click Save and you now have snow!

If using for website place in <head> tags.


Attached Files
.js   snowstorm.js (Size: 15.61 KB / Downloads: 329)
RedSpeedServers - Game servers, web sites, dedicated servers, and more!
Reply
#2
Nice work, but I would rather say adding the code to the headerinclude template, which is where all jscripts codes are. Templates > Ungrouped Templates (the last one on the list) > headerinclude.
Reply
#3
It doesn't really matter. You can also add it in the footer to make your content load faster by a view miliseconds Toungue.
Reply
#4
Why would it load faster? Sounds interesting. Would it work in plain HTML/CSS other than a forum?
Reply
#5
Yes. It works.
[Image: 468x602b.png]
Reply
#6
I know this works in plain HTML/CSS websites. But I mean the script loading faster by placing the <script> tag on the footer or something..
Reply
#7
Looking back at this, I have 1 thing to add.

If using for website place in <head> tags.
RedSpeedServers - Game servers, web sites, dedicated servers, and more!
Reply
#8
(2009-12-31, 12:17 AM)faviouz Wrote: Nice work, but I would rather say adding the code to the headerinclude template, which is where all jscripts codes are.
That's what I often do.Big Grin All of my scripts are mostly there rather than head tags etc.

on topic:
I like it. Just tested at localhost!Smile

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)