-
Re: Field events. auto-tab
This is kinda related I just didn't think it warranted a whole new topic.
I wish that more sites had the cursor come up in the first input field.
also here's the code to make the input field change when entering something
like a phone number. sorry about the form name.
mark
function window_onload() {
yourmother.one.focus();
}
function autotab_tonext(evt, cur_field, char_max, goto_field){
if (cur_field.value.length > (char_max-1)){
goto_field.focus();
}
}
<body onload="return window_onload()">
<form name = 'yourmother'>
<input type="text" name="one" onKeyUp="autotab_tonext(event, yourmother.one,
3, yourmother.two);" size="4" maxlength="3" value="">
<input type = text name = 'two' size = '2'>
<input type = text id = 'three' name = 'three' size = '3'>
"Ako" <ays73@hotmail.com> wrote:
>
>Well it would be a good idea if read a bit about mouse events and outputting
>text , have a go at it and lets see what problems you are having no one
will
>write the whole code for you and even if someone does it you wont learn
anything
>that way.
>
>Good Luck
>
>Ako
>
>
>
>"jessica" <yeah5678@yahoo.com> wrote:
>>
>>Hello
>>
>>i want text to follow my mouse. how do i code this event???
>>
>>Also when the mouse is pressed i want the text to disappear and be replaced
>>by a hollow blue square width 100 pixels. THe square should move with the
>>mouse so that its centre is always at the mouses current position. If the
>>mouse is pressed again the text re-appears. Pressing the mouse toggles
the
>>display between text and the square.
>>
>>how is this coded?
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks