Posts

Showing posts from December, 2013

How to make index.html default instead of index.php?

How to make index.html default instead of index.php?   Put a .htaccess file in your web root directory, if there isn't one yet. Then add the line: DirectoryIndex index.html index.htm index.php or change it accordingly. That line tells apache what file to look at first when it is not specified in the URL, in the same order that you put it after DirectoryIndex. In this example it would first look for index.html, load it if found, if not look for index.htm, load it if found, and if not load index.php. 

How to call a function on mouse scroll wheel via jquery?

How to call a function on mouse scroll wheel via jquery? Simple copy and paste this code and follow the steps. <script> function handle(delta) {         if (delta < 0)         {         functionscrolldown(); // You can change here the function event according to your need on mouse wheel down         }         else         {         functionscrollup(); // You can change here the function event according to your need on mouse wheel up         } }  /** Event handler for mouse wheel event.  */  /* here mouse wheel event stop from the browser */ $(document).on("click", '.fancybox-close', function(e) { // you also need to stop the Mouse wheel function event on a certain evernt of mouse click so you need to change the ".fancybox-close" class accoding to your click button window.removeEventListener('DOMMouseScroll', wheel, false); window.removeEventListener('mousewheel', wheel, false); });  /* here mouse wheel event will start for the