473,703 Members | 3,069 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 1579
". ." <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
3480
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
9872
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
5190
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
12079
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
1844
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
2936
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
3296
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
9934
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
2389
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
8659
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
9240
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
9103
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...
1
8996
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
8952
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...
1
6585
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3113
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
2426
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2055
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.