by matt | Sep 22, 2014 | Javascript / Jquery, Uncategorized
The code is really easy and ready to be extended with your new features. The basic HTML structure: <span class=”read-more”>Read More +</span> <div class=”moreless textshort”> <p>Any content here lorem ipsum dolor sit...
by matt | Sep 13, 2014 | Javascript / Jquery, Uncategorized
If you want to check if the current url contains a string use window.location.href.indexOf Here is a simple example which checks if the current url contain wthe world category. $(document).ready(function () { if(window.location.href.indexOf(“category”)...
by matt | Sep 6, 2014 | Javascript / Jquery, Uncategorized
// minimal CSS img {display: none;} // JavaScript code <script> $(window).load(function() { var images = $(‘img’); images.each(function(n) { $(this).delay(n * 250).fadeIn(); }); }); </script>...
by matt | Sep 6, 2014 | Javascript / Jquery, Uncategorized
<script> var message=”Right Click is disabled on this page”; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if...
by matt | Aug 24, 2014 | Javascript / Jquery, Uncategorized
We are using exact the same code on this site. Basic structure: <div> <!– Ad here, logo or whatever –> </div> <div class=”site-navi”> <!– sticky navigation here –> <ul id=”nav”>...