♥JcMagpie Posted December 3, 2018 Share Posted December 3, 2018 Just a little light hearted fun for the festive season. 😊 JcM Festive Snowfall V1.0 CE BS4/3 A simple add-on to let you add some festive cheer to your website. Will give a falling snow shower all over the website. Can be configured in admin to set quantity, size, speed, color and shape of the snowfall. Again totally standalone with no core code change. Simply copy all files into relevant sections and go to admin modules /content and install. Has been tested on CE BS4 and CE BS3. Again can be seen running on the test sites. https://chilleddisplays.co.uk/ Enjoy. Link to comment Share on other sites More sharing options...
valquiria23 Posted December 3, 2018 Share Posted December 3, 2018 You are a genius Zahid @JcMagpie Many thanks for your contributions to the community! I already had this addon of yours since last year, but this version is much more complete. Congratulations and hope others continue your way helping the community! Valqui Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
beerbee Posted December 10, 2018 Share Posted December 10, 2018 Hi pretty nice @JcMagpie it works also using unicodes: https://www.alt-codes.net/snowflakes-symbols.php It is possible to put each of the the three and also the * in an array and let them get generated randomly. I did this the evil hardcoding way so might see this as a kind of inspiration: // Set the letter that creates your snowflake (recommended: * ) var snowletter=["❄","❅","❆","*"] .... for (i=0;i<=snowmax;i++) { var snowlot = snowletter[Math.floor(Math.random()*snowletter.length)]; document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowlot+"</span>") } Best regards Christoph Link to comment Share on other sites More sharing options...
♥JcMagpie Posted December 10, 2018 Author Share Posted December 10, 2018 😊 yes you can make it do a lot more by just tweeking it. Lots of options in other fonts. ❆⁂✰ ✺⁑⁕ ⁎ * ❄ Link to comment Share on other sites More sharing options...
♥JcMagpie Posted December 10, 2018 Author Share Posted December 10, 2018 2 hours ago, beerbee said: var snowletter=["❄","❅","❆","*"] Just change code to, var snowletter=[<?php echo MODULE_CONTENT_JCM_SNOWFALL_FLAKE?>] This way you can still make changes in admin. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted December 11, 2018 Author Share Posted December 11, 2018 You can mix things up and send a message to your customers , Try this.😊 "❄","⁕","Merry Christmas","❆","*"," 🎅 " and have santa drop in. 😂 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.