galvin Posted October 29, 2009 Share Posted October 29, 2009 Not asking for code, just asking if anyone can point me in the right direction for making a cool "shaking" effect, like the one in the fields at the bottom of this website (http://lonnroth.info). Just put your cursor in one of the fields and then click to another one and you'll see the field shake. Basically, the field shakes if the field is not filled in correctly. I have a site where I'd really like to use that effect and was just curious if anyone had any idea how to do it. I assume it's done with JavaScript, so that's why I have the question in this forum. Thanks Greg Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 29, 2009 Share Posted October 29, 2009 OK. It's not exactly in forum rules, but you should title your topic in a meaningful way. Thanks for renaming. Quote Link to comment Share on other sites More sharing options...
galvin Posted October 29, 2009 Author Share Posted October 29, 2009 Sorry, I somehow submitted the question before I entered the subject. I modified it immediately after and added a full subject Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted October 29, 2009 Share Posted October 29, 2009 The example link you gave uses jquery. Don't really get the script on that example page but you can easily do this by using an onblur event. The documentation about the shake effect on the jquery site might be handy if you decide to use jquery. http://docs.jquery.com/UI/Effects/Shake#overview Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.