Previous Thread
Next Thread
Print Thread
Hop To
#135052 11/25/2000 5:37 PM
Anonymous
Unregistered
Anonymous
Unregistered
Hi--

How about if the cursor could start at the right place when a new screen comes up?

For instance, on the login screen, I should automatically be able to start typing as soon as the page appears instead of having to click on the blank with my mouse.

:-Doug.
<A HREF="http://www.FootprintsintheWind.com" target="_new">http://www.FootprintsintheWind.com</A>

Anonymous
Unregistered
Anonymous
Unregistered
You can do this easily enough with a little JavaScript

Boo thinks your just <img border="0" title="" alt="[Roll Eyes]" src="images/icons/rolleyes.gif" /> !
<A HREF="http://www.mvsource.com/cgi-bin/bg2soa/wwwthreads.pl" target="_new">http://www.mvsource.com/cgi-bin/bg2soa/wwwthreads.pl</A>

Anonymous
Unregistered
Anonymous
Unregistered
Boo--

Well, I know nothing about javascripts.

Could you tell me how, in some way that a person who does not understand programming would understand?

Thanks.

And should this not be part of the package anyway? What do you think?

PS: Not sure why you think I'm crazy... nuts yes, crazy never.

:-Doug.
<A HREF="http://www.FootprintsintheWind.com" target="_new">http://www.FootprintsintheWind.com</A>

Anonymous
Unregistered
Anonymous
Unregistered
The part about the "Boo just thinks your <img border="0" title="" alt="[Roll Eyes]" src="images/icons/rolleyes.gif" /> !" is my signature...it's a quote from an addictive video game. It's NOT directed at you or anyone...

You'll need to tweak it for your form but essentially something like this:
# Within the html <head> tag something like this:
<script language=javascript>
function getFocus() {
document.login.user.focus();
// <-- this is a JavaScript Comment notation
// Break down of the actual focusing
// .focus() is brought to
// document = the page you are on
// where .login = form's name value
// where .user = input's name value
// document.login.user.focus() = points to where you want the entry point
}
</script>

# Then in the body tag
<BODY onLoad="getFocus[)">

# The form should look something like this
<form action="..." name=login>
<input type=text name=user ...>

So what you should do is replace the values in the function getFocus() with the value of <form name=???> and the value of <input name=???> where you want the cursor to start from the login page. Good luck...

Boo thinks your just <img border="0" title="" alt="[Roll Eyes]" src="images/icons/rolleyes.gif" /> !
<A HREF="http://www.mvsource.com/cgi-bin/bg2soa/wwwthreads.pl" target="_new">http://www.mvsource.com/cgi-bin/bg2soa/wwwthreads.pl</A>

Anonymous
Unregistered
Anonymous
Unregistered
Boo--

No offense!

Thanks for the script info. That helps.

Think though that it would be best for me to pass that on to my tech guide. <grin>

:-Doug.
<A HREF="http://www.FootprintsintheWind.com" target="_new">http://www.FootprintsintheWind.com</A>


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)