Ðăng Nhập

View Full Version : Pure Christmas 2012



admin
05-12-2012, 06:14 PM
Demo:

http://ns3.upanh.com/b5.s35.d1/ab3dda78493aefb5fca44a057690e5fc_51477303.forumpur exmas.jpg

Để thêm tuyết rơi bạn upload thư mục "snow2" theo đường dẫn yourforum/ images/styles/xmas/

mở template headinclude chèn code sau vào



<!-- Snow by thevBNinja.com --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src='images/styles/xmas/snow2/snowfall.min.jquery.js'></script> <script type='text/javascript'> $(document).ready(function(){ //Start the snow default options you can also make it snow in certain elements, etc. $(document).snowfall(); $("#clear").click(function(){ $(document).snowfall('clear'); // How you clear }); $("#round").click(function(){ $(document).snowfall('clear'); $(document).snowfall({round : true, minSize: 5, maxSize:8}); // add rounded }); $("#shadows").click(function(){ $(document).snowfall('clear'); $(document).snowfall({shadow : true, flakeCount:200}); // add shadows }); $("#roundshadows").click(function(){ $(document).snowfall('clear'); $(document).snowfall({shadow : true, round : true, minSize: 5, maxSize:8}); // add shadows }); $("#collection").click(function(){ $(document).snowfall('clear'); $(document).snowfall({collection : '.collectonme', flakeCount : 250}); }); }); </script> <!-- End Snow by ThevBNinja.com -->

Sau đó upload file snow.js ở trong file đính kèm lên host theo đường dẫn images/styles/xmas/snow/

Vào template forumhome tìm:


{vb:raw template_hook.forumhome_wgo_pos5}

Thêm vào lên trên code sau:



<div id="wgo_snow" class="wgo_subblock section"> <h3 class="blocksubhead"><img src="images/styles/xmas/snow2/snow.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />Snow Effect Options</h3> <input style="background:#FFF;border: 0 none;" type="button" id="clear" value="+ Click to clear"/> <input style="background:#FFF;border: 0 none;" type="button" id="round" value="+ Rounded"/> <input style="background:#FFF;border: 0 none;" type="button" id="shadows" value="+ Shadows"/> <input style="background:#FFF;border: 0 none;" type="button" id="roundshadows" value="+ Rounded Shadows"/> <input style="background:#FFF;border: 0 none;" type="button" id="collection" value="+ Snow Collection"/> </div>

http://www60.zippyshare.com/v/3449442/file.html