protection
French 
CrawlTrack, webmaster dashboard.
Web analytic, SEO and protection

CrawlProtect, your website safety.
Reinforced protection

Two php/MySQL scripts, free and easy to install
The tools you need to manage and keep control of your site.





diable

CrawlTrack and CrawlProtect support forum

You are not logged in.


#1 07-08-2006 19:34:43

rewerb
Nouveau membre
Registered: 07-08-2006
Posts: 2

Set Focus At Login Screen

Hi There,
thank you very much for developing the Crawltrack Application. I really enjoy tracking the google bots.

But the login screen was really annoying to me. Always thought: why can't the focus be set to the username input box? So I just added some lines of code that I want to share with you.

crawltrack/index.php
1) change this line [line 222]
echo"<form action=\"include/login.php\" method=\"POST\" >\n";
to
echo"<form action=\"include/login.php\" method=\"POST\" name=\"login\">\n";

crawltrack/include/header.php
2) add the following as line 30 [after the comment tag in line 29]
echo "function setFocus(){document.login.userlogin.focus();}";

3) and change [line 40]
echo"<body >\n";
to
echo"<body onLoad=setFocus()>\n";

If you access your crawltrack installation, the cursor focus is set to the username. So you can login using the keyboard only. Will save a lot of time for me ;-) Maybe you find this useful, too.

Cheers,
Thorsten


www.rewerb.com

Last edited by rewerb (07-08-2006 20:36:11)

Offline

 

#2 07-08-2006 20:58:44

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2919

Re: Set Focus At Login Screen

Hello,

Good idea, I will add this to the next release.

Thanks for your help.


CrawlTrack & CrawlProtect developer

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB