Results 1 to 3 of 3

Thread: Setting a table cell's style?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Setting a table cell's style?

    Can anyone tell me why this bit of code just doesnt work please?

    Code:
    function showtab(show,count){
    	
    for(c=1;c<count+1;c++){
        if(show==c){
          document.getElementById('tabcell' + c).style='tabselected';
        }else{
          document.getElementById('tabcell' + c).style='tabunselected';
        }
      } 
    }
    All i'm trying to do is change the style of a cell when it gets clicked, the event fires but vstudio blows up on me.

    any ideas?
    Last edited by tailz; Jul 19th, 2003 at 08:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width