Day: April 20, 2016

jQuery: 判断指针是否在某元素内 How do I check if the mouse is over an element

代码: // required jquery.min.js $(function() { var $current_tab_menu = $('#main_menu'); $(document).on('mouseover',function(e) { var xx = e.originalEvent.x || e.originalEvent.layerX || 0; var yy = e.originalEvent.y || e.originalEvent.layerY || 0; if($current_tab_menu && $('.has_submenu:hover').length === 0) { console.log(($cur… Read More

Magento: 自定义用户登录导向页面 Redirect Customer to Previous Page After Login

Configuration Settings – Login to admin panel – Go to System -> Configuration -> CUSTOMERS -> Customer Configuration -> Login Options – Set: Redirect Customers to Account Dashboard after Loggin in = No – You can see in comments for this field: Customer will stay on the current page if “No” is selected. This setting will redirect customers to the…