By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Java Script Help

P: n/a
. .

Hi

I need to have some help with the Java Script and wonder if some one of
you could help me out . I have a aspx page where I have four Tabs on the
top of the page for the user to click . Each of the tab will give user a
specific message when the click on them . When the page load the first
tab will be default tab and will be bold . But when user click on the
second tab that tab will be bold and rest of them will not bold . In
other word the tab clicked or selected will be bold and rest of them
will not bold . I have done the forst default tab bold . I need help
with how to do the rest ( when user click on the second that that will
be bold and rest not bold and so on )

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Sep 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
". ." <kmandal at sark.com> wrote in message news:nc*************@news.uswest.net...

Hi
Lo
I need to have some help with the Java Script and wonder if some one of
you could help me out . I have a aspx page where I have four Tabs on the
top of the page for the user to click . Each of the tab will give user a
specific message when the click on them . When the page load the first
tab will be default tab and will be bold . But when user click on the
second tab that tab will be bold and rest of them will not bold . In
other word the tab clicked or selected will be bold and rest of them
will not bold . I have done the forst default tab bold . I need help
with how to do the rest ( when user click on the second that that will
be bold and rest not bold and so on )


not knowing how you access your "tabs" I have a different option for you:

use CSS.

a few helpful pages on that:
http://diveintomark.org/archives/200.../pure_css_tabs
http://www.sovavsiti.cz/css/horizontal_menu.html
http://www.alistapart.com/stories/taminglists/

examples:
http://daniel.glazman.free.fr/weblog/targetExample.html
http://nontroppo.org/test/tab3.html
http://alex.netwindows.org/tabs/tabs-example2.html
http://alex.netwindows.org/tabs/rollover_effect.html

HTH
Sep 22 '05 #2

P: n/a
. .

Hi

Thanks for your reply . Here is the code I was using to manipulate the
tabs

'this method will change the appearance of the tab cells that represent
the tabs on the page
'it will accept 4 parameters (1 for the 'on' tab, and three for the
other 'off' tabs)
Private Sub ChangeTabClasses(ByVal onTab As String, ByVal offTabOne
As String, ByVal offTabTwo As String, ByVal offTabThree As String)
Dim functionName As String = "ChangeTabClasses"
Dim ChangeTabClasses As String = "<script language =
'javascript'> " & _
onTab & ".className =
'OnTab';" & _
offTabOne & ".className
= 'OffTab';" & _
offTabTwo & ".className
= 'OffTab';" & _
offTabThree &
".className = 'OffTab';" & _
"</script>"
Page.RegisterStartupScript(functionName, ChangeTabClasses)
End Sub

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Sep 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.