2010-06-08, 23:23:15
Sets the cursor focus to the username field in the login form.
Paste the following code on your text editor and save as setfocus-login.php (or whatever) in your plugins folder:
Paste the following code on your text editor and save as setfocus-login.php (or whatever) in your plugins folder:
Code:
<?php
/* setfocus-login.php */
/* for GetSimple 2.00+ */
$thisfile = basename(__FILE__, ".php");
register_plugin(
$thisfile,
'Set focus (login)',
'0.1 beta',
'Carlos Navarro',
'#',
'Set cursor focus to username field when login into GS'
);
add_action('login-reqs','setfocus_login');
function setfocus_login() {
echo "<script type=\"text/javascript\">try{document.getElementById('userid').focus();}catch(e){}</script>";
}
?>