Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Help with tab page

    I want to design a tab page,like follows:
    ___________
    |Tab1 | Tab2|
    --------------------
    |          |
    |          |
    ---------------------

    The color of Tab1 and Tab2 are black,when I click Tab1,the Tab1 change color from black to white,when I click Tab2,the Tab2 change color from black to white and the Tab1 restore its color to black at the same time.

    I don't know how to realize it. Would you give some example code? My code is follows:
    <table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="25" valign="bottom" bgcolor="#2E5B78">
    <table width="400" height="25" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="75" align="center" bgcolor="#FFFFFF"><a href="main.htm" target="mainFrame" class="BLink">Tab1</a></td>
    <td width="75" align="center"><a href="main2.htm" target="mainFrame" class="CLink">Tab2</a></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    Any idea will be appreciated!

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should be of help to you:
    www.alistapart.com/articles/eatcake/

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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