473,770 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1582
". ." <kmandal at sark.com> wrote in message news:nc******** *****@news.uswe st.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 ChangeTabClasse s(ByVal onTab As String, ByVal offTabOne
As String, ByVal offTabTwo As String, ByVal offTabThree As String)
Dim functionName As String = "ChangeTabClass es"
Dim ChangeTabClasse s As String = "<script language =
'javascript'> " & _
onTab & ".className =
'OnTab';" & _
offTabOne & ".className
= 'OffTab';" & _
offTabTwo & ".className
= 'OffTab';" & _
offTabThree &
".className = 'OffTab';" & _
"</script>"
Page.RegisterSt artupScript(fun ctionName, ChangeTabClasse s)
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
3482
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 aquire the screen resolution of the visiting user. Now I need to pass the java variable to another variable on the same document. I have a feeling, this will not be easy - as java is client- and php server-sided. Now, if my assumption is corect,...
0
9873
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 ********************************** package Celcom.Client;
3
5192
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 JavaScript function to be called with a dynamic parameter, an ID# known by the server. The way I would go about doing this in PHP would be extremely simple: <script> foo(<?PHP echo ID; ?>);
4
12085
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 running a long Java command from a shell script. Firstly, my Solaris (8) / Java setup. Mu machine already had Java 1.2
4
1847
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 get a Java Yes/No dialog up and on yes call the hyperling query string. I can do this with a single hyperlink but not passing on the query string and invnumber Here is my Response Write link
4
2944
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 script code with asp.net . And make the client-side java script code as user defined cotrol. But I only find the RegisterClientScriptBlock method, it only can insert java script code to <body></body> in html. But my java script code must insert...
9
3298
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: .... <%@ page language="java" import="reportgen.*"%>
33
9951
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 the following calculation: z = x! / (x- y)! The following code is my attempt and i was hoping for a point in the right direction as too where i am going wrong.. cheers
9
2395
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 that creates non-JavaScript problems that can be fixed using JavaScript. With the Microsoft update installed, Java applets (as well as other content such as Flash videos) are unable to receive user input until an activating click or key press....
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.