473,385 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Java Script Help

. .

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
2 1564
". ." <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
. .

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andy R. | last post by:
Hello everyone, I've spent quite some time now, looking for some information on how to get this done, sadly none has helped me much, though. I have a bit of java scrpt on a webpage (.php) to...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
3
by: StealthMonkey | last post by:
Let me prefix this by saying that I know next to nothing about Java (so please try to keep explainations simple). I use PHP for my server-side web programming. Here is my dilemma: I need a...
4
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble...
4
by: Don Grover | last post by:
I hope some one can help, I have a html table that is created with asp that has a row of repeated buttons down the side. these call a page passing a query string with invoice number. I need to...
4
by: Jeff | last post by:
Hi, Are there anyone can help me? My questions are as following: Because I have a tools bar which coding with javascript, it will reuse very often. So I want to separate the client-side java...
9
by: Stephen H. | last post by:
Hi, I have an existing web application with java beans that I wanne migrate to ASP.NET using C#. The existing web application has some jsp files that use java beans as follows: .... <%@...
33
by: patrick_woflian | last post by:
hey guys, im just writing a basic calculation at the moment, before building on it for an A-Level piece of work. i can add/divide etc... two numbers together yet i am having a major problem with...
9
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.