Hi Crmpicco!!!
Try this one
<table><tr>
<td height="20" bordercolor="#000000" align="center" bgcolor="#006699" colspan="3"
id="tdid"
onClick="setCheckUncheck();setVal('hi','all','td') ;"
onMouseOver="this.bgColor = '#C0C0C0'; this.style.color='#000000'; style.cursor='hand'; window.status='';"
onMouseOut="this.bgColor = '#006699'; this.style.color='#FFFFFF';window.status='';">
Check All
</td>
</tr>
</table>
<script>
var
flag=true;
function setVal(a,b,c)
{
}
function setCheckUncheck()
{
obj=document.getElementById("tdid")
if(flag==true)
{
obj.innerHTML='Uncheck All'
flag=false;
}
else
{
obj.innerHTML='Check All'
flag=true;
}
}
</script>
plz change "setVal('hi','all','td')"as per ur reqmt.
hope this will help you
Cheers :)
vinod
|