Java Script Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • . .

    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 ***
  • Robi

    #2
    Re: Java Script Help

    ". ." <kmandal at sark.com> wrote in message news:ncxYe.4$HY 3.244@news.uswe st.net...[color=blue]
    >
    > Hi[/color]

    Lo
    [color=blue]
    > 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 )[/color]

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

    use CSS.

    a few helpful pages on that:


    Do you crave the disciplined order of proper (X)HTML lists but long for control over their presentation? You can put a stop to their wild ways and bad behavior. Mark Newhouse shows you how to tame …


    examples:

    ✔️ 1win bookmaker, vous permet de parier sur le site officiel ⚡ Les meilleures cotes et des bonus généreux. Utilisez les miroirs.

    Follow Alex Russell’s journey from pioneering DHTML to shaping modern web standards, online gaming innovations, and browser technologies.

    Follow Alex Russell’s journey from pioneering DHTML to shaping modern web standards, online gaming innovations, and browser technologies.


    HTH

    Comment

    • . .

      #3
      Re: Java Script Help


      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 ***

      Comment

      Working...