$(document).ready(function() { $('#login').bind({ 'click': function () { login(); }, 'mouseover': function () { over(); }, 'mouseout': function () { out(); } });});