Javascript gegen CSS = unterschiedliche Linkdarstellung

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

    Javascript gegen CSS = unterschiedliche Linkdarstellung

    Liebe NG,

    ich betreue die web Seiten einer Schule und habe bislang ausschließlich
    HTML und CSS eingesetzt.

    Jetzt habe ich die Navigation auf Javascript umgestellt und dabei
    folgendes festgestellt:

    1. Die externen links, wie in der CSS Datei definiert, werden korrekt
    dargestellt (z.B. text-decoration: none; )
    2. die internen links werden jedoch unterstrichen, was ich nicht möchte.

    Wo muss ich weitersuchen, bei Javascript oder bei CSS?

    Gruß,

    Michael

    --
    ~~~~~~~~~~~~~~~ ~~~~~~~

    ~~~~~~~~~~~~~~~ ~~~~~~~

  • Chris Leipold

    #2
    Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

    Mit Sicherheit im CSS. Aber es hilft, wenn Du eine URL mitschickst.
    Du hast schon bemerkt, dass das hier eine englischsprachi ge NG ist?

    Gruß Chris


    Michael Jaeger wrote:[color=blue]
    > Liebe NG,
    >
    > ich betreue die web Seiten einer Schule und habe bislang ausschließlich
    > HTML und CSS eingesetzt.
    >
    > Jetzt habe ich die Navigation auf Javascript umgestellt und dabei
    > folgendes festgestellt:
    >
    > 1. Die externen links, wie in der CSS Datei definiert, werden korrekt
    > dargestellt (z.B. text-decoration: none; )
    > 2. die internen links werden jedoch unterstrichen, was ich nicht möchte.
    >
    > Wo muss ich weitersuchen, bei Javascript oder bei CSS?
    >
    > Gruß,
    >
    > Michael
    >[/color]

    Comment

    • Johannes Koch

      #3
      Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

      Michael Jaeger wrote:
      [color=blue]
      > ich betreue die web Seiten einer Schule und habe bislang ausschließlich
      > HTML und CSS eingesetzt.[/color]

      Fine.
      [color=blue]
      > Jetzt habe ich die Navigation auf Javascript umgestellt[/color]

      Why?
      --
      Johannes Koch
      In te domine speravi; non confundar in aeternum.
      (Te Deum, 4th cent.)

      Comment

      • Michael Jaeger

        #4
        Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

        Chris Leipold wrote:
        [color=blue]
        > Mit Sicherheit im CSS. Aber es hilft, wenn Du eine URL mitschickst.
        > Du hast schon bemerkt, dass das hier eine englischsprachi ge NG ist?
        >
        > Gruß Chris
        >
        >
        > Michael Jaeger wrote:[color=green]
        >> Liebe NG,
        >>
        >> ich betreue die web Seiten einer Schule und habe bislang
        >> ausschließlich HTML und CSS eingesetzt.
        >>
        >> Jetzt habe ich die Navigation auf Javascript umgestellt und dabei
        >> folgendes festgestellt:
        >>
        >> 1. Die externen links, wie in der CSS Datei definiert, werden
        >> korrekt dargestellt (z.B. text-decoration: none; )
        >> 2. die internen links werden jedoch unterstrichen, was ich nicht
        >> möchte.
        >>
        >> Wo muss ich weitersuchen, bei Javascript oder bei CSS?[/color][/color]

        Hi Chris,

        OK, sorry, I must have forgotton :-)

        I'll repost my question in English tomorrow.

        Sorry, I cannot point to a url because I have not uploaded the new
        files, but I think I will be able to do so on the weekend - well, at
        least a sample.

        Right now the web site is designed in HTML and CSS,as I said, and this
        is the url: www.gymnasium-burgdorf.de\test.htm

        Michael

        --
        ~~~~~~~~~~~~~~~ ~~~~~~~

        ~~~~~~~~~~~~~~~ ~~~~~~~

        Comment

        • Michael Jaeger

          #5
          Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

          Johannes Koch wrote:
          [color=blue]
          > Michael Jaeger wrote:
          >[color=green]
          >> ich betreue die web Seiten einer Schule und habe bislang
          >> ausschließlich HTML und CSS eingesetzt.[/color]
          >
          > Fine.[/color]

          Thanks ;-)
          [color=blue][color=green]
          >> Jetzt habe ich die Navigation auf Javascript umgestellt[/color]
          >
          > Why?[/color]

          If you take a look at the url you may understand:
          www.gymnasium-burgdorf.de\test.htm
          The main menu is static, it does not change, but the submenu does, and
          as the web site keeps growing, more and more links accumulate
          horizontally, and I don't think I can handle this by CSS exclusively.

          But maybe I'm wrong, maybe it's just a design flaw, but do you happen
          to have a clue as to the unusual (?) behaviour of external/internal
          links?

          Michael

          --
          ~~~~~~~~~~~~~~~ ~~~~~~~

          ~~~~~~~~~~~~~~~ ~~~~~~~

          Comment

          • Johannes Koch

            #6
            Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

            Michael Jaeger wrote:
            [color=blue]
            > Johannes Koch wrote:
            >[color=green]
            >>Michael Jaeger wrote:[color=darkred]
            >>>Jetzt habe ich die Navigation auf Javascript umgestellt[/color]
            >>
            >>Why?[/color]
            >
            > If you take a look at the url you may understand:
            > www.gymnasium-burgdorf.de\test.htm[/color]

            I could not see a menu, until I enabled script. So your site will not be
            usable without scripting, which IMHO is a no-no. You should have at
            least links for the main categories.

            --
            Johannes Koch
            In te domine speravi; non confundar in aeternum.
            (Te Deum, 4th cent.)

            Comment

            • Michael Jaeger

              #7
              Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

              Johannes Koch wrote:
              [color=blue]
              > Michael Jaeger wrote:
              >[color=green]
              >> Johannes Koch wrote:
              >>[color=darkred]
              >>> Michael Jaeger wrote:
              >>>> Jetzt habe ich die Navigation auf Javascript umgestellt
              >>>
              >>> Why?[/color]
              >>
              >> If you take a look at the url you may understand:
              >> www.gymnasium-burgdorf.de\test.htm[/color]
              >
              > I could not see a menu, until I enabled script. So your site will
              > not be usable without scripting, which IMHO is a no-no. You should
              > have at least links for the main categories.[/color]

              Is there an easy way to offer a css alternative for javascript disabled
              browsers like (in simple words)

              if Javascript is enabled - use the Javascript menu
              if not - use css?

              Michael


              --
              ~~~~~~~~~~~~~~~ ~~~~~~~

              ~~~~~~~~~~~~~~~ ~~~~~~~

              Comment

              • Uncle Pirate

                #8
                Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

                Michael Jaeger wrote:
                [color=blue]
                > Is there an easy way to offer a css alternative for javascript disabled
                > browsers like (in simple words)
                >
                > if Javascript is enabled - use the Javascript menu
                > if not - use css?[/color]

                A menu is going to depend first on the HTML, then the CSS to format the
                layout, just place your HTML/CSS menu within the <noscript> element.
                You are using <noscript>, aren't you? I sure hate the blank pages that
                I sometimes see from people not using <noscript>.

                --
                Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
                Webmaster/Computer Center Manager, NMSU at Alamogordo
                Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
                '94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
                A zest for living must include a willingness to die. - R.A. Heinlein

                Comment

                • Michael Jaeger

                  #9
                  Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

                  Uncle Pirate wrote:
                  [color=blue]
                  > Michael Jaeger wrote:
                  >[color=green]
                  >> Is there an easy way to offer a css alternative for javascript
                  >> disabled browsers like (in simple words)
                  >>
                  >> if Javascript is enabled - use the Javascript menu
                  >> if not - use css?[/color]
                  >
                  > A menu is going to depend first on the HTML, then the CSS to format
                  > the layout, just place your HTML/CSS menu within the <noscript>
                  > element. You are using <noscript>, aren't you? I sure hate the
                  > blank pages that I sometimes see from people not using <noscript>.[/color]

                  no, I don't use <noscript>. I have to find out what <noscript> is all
                  about.
                  What's the use of it?
                  Please, enlighten me or point me to a helpful resource,

                  Michael

                  --
                  ~~~~~~~~~~~~~~~ ~~~~~~~

                  ~~~~~~~~~~~~~~~ ~~~~~~~

                  Comment

                  • Evertjan.

                    #10
                    Re: Javascript gegen CSS = unterschiedlich e Linkdarstellung

                    Michael Jaeger wrote on 10 mrt 2005 in
                    comp.infosystem s.www.authoring.stylesheets:[color=blue]
                    > Uncle Pirate wrote:[color=green]
                    >> Michael Jaeger wrote:
                    >>[color=darkred]
                    >>> Is there an easy way to offer a css alternative for javascript
                    >>> disabled browsers like (in simple words)
                    >>>
                    >>> if Javascript is enabled - use the Javascript menu
                    >>> if not - use css?[/color]
                    >>
                    >> A menu is going to depend first on the HTML, then the CSS to format
                    >> the layout, just place your HTML/CSS menu within the <noscript>
                    >> element. You are using <noscript>, aren't you? I sure hate the
                    >> blank pages that I sometimes see from people not using <noscript>.[/color]
                    >
                    > no, I don't use <noscript>. I have to find out what <noscript> is all
                    > about.
                    > What's the use of it?
                    > Please, enlighten me or point me to a helpful resource,[/color]

                    <http://www.google.com/search?q=noscri pt>


                    --
                    Evertjan.
                    The Netherlands.
                    (Replace all crosses with dots in my emailaddress)

                    Comment

                    Working...