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 July 5th, 2003, 02:02 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Navigation

I would like to make a nav bar which looks like and has similar functionality as the on on this page: http://www.webscribble.com
I am not sure how to accomplish this, should i use Frames or is there another way to have the tabs change appearance from page to page.

Thanks,
Jon
 
Old July 6th, 2003, 05:33 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

As far as I can see, this is not too difficult. There is no need for frames; all you need to do is display the correct images in each page, for example:

{page1.html}
imgTab1_On.gif
imgTab2_Off.gif
imgTab3_Off.gif

{page2.html}
imgTab1_Off.gif
imgTab2_On.gif
imgTab3_Off.gif

{page3.html}
imgTab1_Off.gif
imgTab2_Off.gif
imgTab3_On.gif

On the first page, imgTab1 is selected (the _On.gif image). The same is true for the second page with the second tab and so on.

So all you need to do is display the "selected" tab with an image on the page the user has browsed to. You can even do this with a server side technology like ASP or PHP etc and then use the QueryString to determine which tab to select.

HtH

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation sg48 ASP.NET 2.0 Basics 2 February 13th, 2008 12:18 PM
Navigation volsha Dreamweaver (all versions) 1 July 20th, 2007 03:19 PM
navigation nidheeshkayal ASP.NET 2.0 Basics 0 March 16th, 2006 07:05 AM
How do I get a menu/navigation look like this? R/O LuxeGirl Classic ASP Basics 4 January 22nd, 2005 08:04 PM
Page Navigation surendran PHP How-To 1 August 2nd, 2004 12:57 PM





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