Bolding a tab....

Results 1 to 3 of 3

Thread: Bolding a tab....

  1. #1
    bmurray Guest

    Default Bolding a tab....

    I have a 12 tab strip, and when a user clicks on a tab, the background color of active tab is white and the rest are grey, here is the function that I use:<BR><BR>function showTab(intID, intMax){ <BR>for (i = 1; i &#060;= intMax; i++){ <BR>eval("spnTab" + i).style.backgroundColor = "#cccccc"; <BR>eval("tab" + i + "").style.visibility = "hidden"; <BR>} <BR>eval("tab" + intID).style.visibility = "visible"; <BR>eval("spnTab" + intID).style.backgroundColor = "#ffffff"; <BR>} <BR><BR>My question is that I want to have the active tab to have bold writing and a grey background. Is there any code I could add here to accomplish this?

  2. #2
    Join Date
    Dec 1969

    Default Seeing that this is

    my code anyway! how&#039;s it working for you? ;-) R&D Cascading Style Sheets and the DOM, you should find your answer...<BR>although it should be something like fontWeight or something<BR><BR>Jason<BR>

  3. #3
    bmurray Guest

    Default RE: Seeing that this is

    Works great, thanks for the help that you gave me, I really appreciated it.

Posting Permissions

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