Changeset 14817 for trunk/wp-login.php
- Timestamp:
- 05/23/2010 11:06:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r14809 r14817 125 125 function s(id,pos){g(id).left=pos+'px';} 126 126 function g(id){return document.getElementById(id).style;} 127 function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{ wp_attempt_focus();}catch(e){}}}127 function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}} 128 128 addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);}); 129 129 </script>
Note: See TracChangeset
for help on using the changeset viewer.