checkbox and cell color

Discussion in 'OT Technology' started by babygodzilla, Aug 2, 2003.

  1. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    aite i have this code that works

    Code:
    function checkCount(that) {
    	
    	if (that.checked)
    	{
    		NewCount = NewCount + 1;
    		that.style.background = 'red';
    	}
    	else
    	{
    		NewCount = NewCount - 1;
    		that.style.background = 'white';		
    	}
    
    	if (NewCount > 5)
    	{
    		alert('Pick 5 only')
    		NewCount = NewCount - 1;
    		document.checks; 
    		that.style.background = 'white';
    		return false;
    	}
    	
    	return true;
    }
    

    cept the cell color changing DOESNT WORK IN MOZILLA!!!! :(
    any solution for that?
     
  2. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Maybe try that.style.background-color instead of that.style.background :dunno:
     
  3. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    welcome to the world of html my friend :sad2:
     

Share This Page