function
funFocus1() {
var
val = document.getElementById(
'd1'
);
val.childNodes[1].style.border =
'1px solid #F00'
;
val.childNodes[1].style.backgroundColor =
'#FFFFCC'
}
funBlur1() {
'1px solid #808080'
'#FFF'
funFocus7() {
val.childNodes[7].style.border =
val.childNodes[7].style.backgroundColor =
funBlur7() {
funFocus13() {
val.childNodes[13].style.border =
val.childNodes[13].style.backgroundColor =
funBlur13() {
window.onload =
() {
val.childNodes[1].onfocus = funFocus1;
val.childNodes[1].onblur = funBlur1;
val.childNodes[7].onfocus = funFocus7;
val.childNodes[7].onblur = funBlur7;
val.childNodes[13].onfocus = funFocus13;
val.childNodes[13].onblur = funBlur13;
for
(
i=0; i<val.childNodes.length; i++) {
if
(i%2 != 0) {
val.childNodes[i].style.border =
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
div
id
"d1"
input
type
"text"
name
"text1"
br
"text2"
"text3"