INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

form elements

How'd they do it in Hotmail ? by Deadline
Posted: 14 Aug 01

This can be considered as the answer for Thread216-115278 which goes by the title "How'd they do it in hotmail ?"

You can use the following function :

function CHKD(E) {
if(E.checked)
(E.parentElement).parentElement.style.backgroundColor ='#EEEEEE';
else    {
 (E.parentElement).parentElement.style.backgroundColor ='GHOSTWHITE';     }
}

Whereas, while creating a checkbox, you can use this (this means, similar to this in ASP or ColdFusion or Static HTML):

<Table ID=tbl>
<TBODY ID=a1 BGCOLOR=GHOSTWHITE>
<TR id=1 ALIGN=CENTER>
<TD ALIGN=CENTER>
<input type=CHECKBOX ID=chk name=chk value="0"  LANGUAGE=javascript onclick="return CHKD(this)">
</TD></TR>
</TBODY>

<TBODY ID=a2 BGCOLOR=GHOSTWHITE>
<TR id=2 ALIGN=CENTER>
<TD ALIGN=CENTER>
<input type=CHECKBOX ID=chk name=chk value="1"  LANGUAGE=javascript onclick="return CHKD(this)">
</TD></TR>
</TBODY>
</table>


Check it out and enjoy....

Back to Javascript FAQ Index
Back to Javascript Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close