Demo:
Để 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
Sau đó upload file snow.js ở trong file đính kèm lên host theo đường dẫn images/styles/xmas/snow/Code:<!-- 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 -->
Vào template forumhome tìm:
Thêm vào lên trên code sau:Code:{vb:raw template_hook.forumhome_wgo_pos5}
Code:<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>
Bookmarks