We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,605 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Tabbed navigation using Jquery, highlighted tab problem

I am using tabbed navigation in my website.I have this code with me.I have used Jquery for fading effect.when I select any tab, I want that tab to be highlighted.but I can't do this.
Please help.Thanks in advance.

I couldn't attached "tab.css" so I am pasting it here.

*{ padding: 0; margin: 0; color: #FFF; }

body {
background-color:#303030;
font-family: Trebuchet MS, Helvetica, Arial; font-size: 95%;
}

tabnav {

width:100%;

}

navblock {

width:450px;
margin:25px auto;
background-color:transparent;

}

div.hoverbk {
position:relative;
float:left;
background:#ffffff;
/#505050;/
}

div.hoverbk a{
position:relative;
display:block;
z-index:2;
width:150px;
height:40px;
line-height: 30px;
text-align: center;
padding-top:5px;
font-size: 1.1em;
text-decoration: none;
color: #000000;
background: transparent none repeat-x 0 0 scroll;
}

div.hoverbk div#m1 {
display:none;
position:absolute;
z-index:1;
top:0px;
background:#00CCFF
;
}

div.hoverbk div#m2 {
display:none;
position:absolute;
z-index:1;
top:0px;
background: #6600FF;
}
div.hoverbk div#m3 {
display:none;
position:absolute;
z-index:1;
top:0px;
background:#CC33FF;
}

ul {
list-style-type:none;
float:left;
}

.selected {
display:block;
background:#202020;
}

jquery.js

jquery-color.js

tab.html

tab.js

Attachments jquery.js (54.47KB) jquery-color.js (3.69KB) tab.html (0.57KB) tab.js (1.13KB)
1
Contributor
0
Replies
1
View
sagy26.1991
Newbie Poster
7 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.2992 seconds using 2.93MB