Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2005, 09:45 PM
Authorized User
 
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!

 
Old August 12th, 2005, 05:01 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A simple search on google will return the following :

http://www.alistapart.com/articles/slidingdoors/

http://labs.silverorange.com/archive.../updatedsimple

http://www.clagnut.com/sandbox/cssta...ngtext=csstabs



Charul Shukla





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-tab running off the page sanjumodgil ASP.NET 1.0 and 1.1 Basics 0 January 19th, 2007 12:41 PM
Hiding tab page headings badgolfer VS.NET 2002/2003 1 June 15th, 2005 04:29 PM
Print Dialogue for Forms per tab/page jaip2p Access VBA 1 November 20th, 2003 12:33 PM
Tab page soccers_guy10 Pro VB.NET 2002/2003 1 October 21st, 2003 04:01 AM
Tab page problem melvik C# 0 September 23rd, 2003 09:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.