|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Article Discussion
This is an article discussion thread for discussing the SitePoint article, "Simple Tricks for More Usable Forms"
|
|
|
|
|
|
#2 |
|
.
![]() ![]() ![]() ![]() Join Date: Jan 2002
Location: in the outskirts, and in the fringes
Posts: 499
|
Nice, and the working example at the end is great for us who skim and hack
![]() |
|
|
|
|
|
#3 |
|
SitePoint Member
Join Date: Mar 2005
Posts: 4
|
Hmm that wasn't too hard :-)
Here is the code addition to alter the label text: function oninputfocus(e) { /* Cookie-cutter code to find the source of the event */ [...cut...] /* End cookie-cutter code */ var id = source.id; var label = getLabelForId(id); label.style.fontWeight='bold'; source.style.border='2px Solid #711F5E'; source.style.margin='0'; } function oninputblur(e) { /* Cookie-cutter code to find the source of the event */ [...cut...] /* End cookie-cutter code */ var id = source.id; var label = getLabelForId(id); label.style.fontWeight='normal'; source.style.border='1px Solid #711F5E'; source.style.margin='1px 0'; } Hope it's usefull! It was for me :-) |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 02:32.









Hybrid Mode
