diff --git a/css/admin.css b/css/admin.css index b6c87cb13..d2ae77710 100644 --- a/css/admin.css +++ b/css/admin.css @@ -749,8 +749,7 @@ tr.deleted td { /* help boxes */ .hint { display: none; - position: relative; - left: 0px; + position: absolute; margin-top: 4px; margin-bottom: 2px; border: 1px solid #50B0EC; diff --git a/js/admin.js b/js/admin.js index 6112155a2..d8d8f481a 100644 --- a/js/admin.js +++ b/js/admin.js @@ -402,8 +402,17 @@ if (helpboxes) { if ($('input')) { - $('input').focus(function() { $(this).parent().find('.hint:first').css('display', 'block'); }); - $('input').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); + //Display by rollover + $('input').mouseover(function() { $(this).parent().find('.hint:first').css('display', 'block'); }); + $('input').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); + + //display when you press the tab key + $('input').keydown(function (e) { + if ( e.keyCode === 9 ){ + $('input').focus(function() { $(this).parent().find('.hint:first').css('display', 'block'); }); + $('input').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); + } + }); } }); }