Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 10-17-2004, 06:49 PM Navigation Tabs
Junior Talker

Posts: 3
Trades: 0
The basic layout of my site contains a horizontal bar of tabs at the top of the page that link to the various main sections. Below the tab is the content of each page. The tab bar in included in each page via ssi, so every page in the site references the same html document for the tab bar. Each tab is a separate image.

Question: is there any sort of code or script I can use so that when a visitor clicks on a tab and goes to the linked page, it will remember which tab was last clicked and display a different (e.g., differently colored) tab in its place (like for example, on the Apple site) so as to indicate which section the visitor is currently in, but while preserving the ssi included tab bar as only one html document?
zigzag86z is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2004, 11:04 PM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
You can do it in CSS.
Along with PHP, it is a cool combination.

Check out these references
http://www.codethat.com/phptree/index.html
http://css.maxdesign.com.au/
http://www.downloadfreetrial.com/scr...avigation.html
http://www.w3.org/Style/Examples/007/target.html
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 10-17-2004, 11:17 PM
DevelopedWeb's Avatar
Webmaster Talker

Posts: 610
Location: USA
Trades: 0
I would go with PHP. Writing a VERY simple script will allow you to have the script get the filename for the current page and determine what CSS classname to give to the tab based on it. As vivekar said, you can then use CSS to make one tab class (the "active" class, for instance) a different style (ie--color, bgcolor) than the rest.
__________________
DevelopedWeb.com -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
- a brand new online discussion area.
DevelopedWeb is offline
Reply With Quote
View Public Profile Visit DevelopedWeb's homepage!
 
Reply     « Reply to Navigation Tabs
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11890 seconds with 12 queries