$(document).ready(function(){ myprj.models.onload(); myprj.events(); }); myprj = { models : { onload : function () { }, PreInsForm : { _click : false, submit : function() { // 1回目のみsubmit可能 if (this._click == false) { this._click = true; return true; } else { return false; } } } }, // Model End events : function () { $('#frmPreIns #submit').bind("click", function(){ return myprj.models.PreInsForm.submit(); }); } // Event End } // All End $(function() { var elm = document.getElementById('Kiyaku'); var height = elm.offsetHeight; elm.onscroll = function() { var scrollHeight = elm.scrollHeight; var scrollTop = elm.scrollTop; var scrollPosition = height + scrollTop; var proximity = 0; if ((scrollHeight - scrollPosition) / scrollHeight <= proximity) { $("a").removeClass("pointerEvents"); } } });