473,597 Members | 2,076 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 1573
". ." <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
3471
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
9867
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
5172
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
12066
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
1840
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
2930
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
3290
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
9917
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
2378
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
7884
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8270
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6683
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
5423
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
3922
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1230
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.