hyperlinks question

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

    hyperlinks question

    I can't remember how to set up a list of hyperlinks for a project I'm
    working on. I think it involves an "onclick" command. What I'm trying to
    do is to have a list of links that when clicked on give you a sublist of
    links. For example:

    Michigan
    Missourri
    New Mexico

    can all be clicked on and when you click on Michigan a list appears below
    Michigan with links to pages like Detroit, Lansing & Grand Rapids.

    When you click Missourri, the open list under Michigan would close and a
    similar list would appear under Missourri.

    Can anyone help?


  • Ivo

    #2
    Re: hyperlinks question

    "JoeyMichel le" wrote[color=blue]
    > I can't remember how to set up a list of hyperlinks for a project I'm
    > working on. I think it involves an "onclick" command. What I'm trying to
    > do is to have a list of links that when clicked on give you a sublist of
    > links. For example:
    >
    > Michigan
    > Missourri
    > New Mexico
    >
    > can all be clicked on and when you click on Michigan a list appears below
    > Michigan with links to pages like Detroit, Lansing & Grand Rapids.
    >
    > When you click Missourri, the open list under Michigan would close and a
    > similar list would appear under Missourri.[/color]

    You want your page to be dynamic. This is a javascript question. Ask in
    news:comp.lang. javascript or see for a quick example:
    <URL: http://www.mnsys.org/niwo/EXPmenu/ >

    HTH
    Ivo


    Comment

    • Stephen Poley

      #3
      Re: hyperlinks question

      On Thu, 22 Jul 2004 04:25:30 +0200, "Ivo" <no@thank.you > wrote:
      [color=blue]
      >"JoeyMichell e" wrote[color=green]
      >> I can't remember how to set up a list of hyperlinks for a project I'm
      >> working on. I think it involves an "onclick" command. What I'm trying to
      >> do is to have a list of links that when clicked on give you a sublist of
      >> links. For example:
      >>
      >> Michigan
      >> Missourri
      >> New Mexico
      >>
      >> can all be clicked on and when you click on Michigan a list appears below
      >> Michigan with links to pages like Detroit, Lansing & Grand Rapids.
      >>
      >> When you click Missourri, the open list under Michigan would close and a
      >> similar list would appear under Missourri.[/color][/color]
      [color=blue]
      >You want your page to be dynamic. This is a javascript question. Ask in
      >news:comp.lang .javascript or see for a quick example:
      ><URL: http://www.mnsys.org/niwo/EXPmenu/ >[/color]

      A poor example, because readers without Javascript cannot get to the
      underlying links.

      For a better example, see http://www.mattkruse.com/javascript/mktree/

      Though for something just slightly different, which you might like
      better when you've seen it, try


      --
      Stephen Poley


      Comment

      • Ivo

        #4
        Re: hyperlinks question

        "Stephen Poley" wrote[color=blue]
        > Though for something just slightly different, which you might like
        > better when you've seen it, try
        > http://www.meyerweb.com/eric/css/edge/menus/demo.html[/color]

        That page uses :hover on <li> elements, which only some marginally used
        browsers support. No dependance on javascript at all, woohee! But it must be
        possible for the major browsers to read the css rules and build some
        onmouseover event handlers on the fly. Has anyone tried that yet?
        Ivo


        Comment

        • Warden Dave

          #5
          Re: hyperlinks question

          "Stephen Poley" <sbpoleySpicedH amTrap@xs4all.n l> wrote:[color=blue][color=green]
          >>"JoeyMichelle " wrote[/color][/color]
          [color=blue][color=green]
          > >You want your page to be dynamic. This is a javascript question. Ask in
          > >news:comp.lang .javascript or see for a quick example:
          > ><URL: http://www.mnsys.org/niwo/EXPmenu/ >[/color][/color]
          [color=blue]
          > A poor example, because readers without Javascript cannot get to the
          > underlying links.[/color]

          Hmm. It was just a JS example without proper HREF attribute values; thats all.
          Same thing, but with (some) more usefull values:


          WD


          Comment

          • Warden Dave

            #6
            Re: hyperlinks question

            "Ivo" <no@thank.you > wrote in message news:40fff705$0 $140$18b6e80@ne ws.wanadoo.nl.. .[color=blue]
            > "Stephen Poley" wrote[color=green]
            > > Though for something just slightly different, which you might like
            > > better when you've seen it, try
            > > http://www.meyerweb.com/eric/css/edge/menus/demo.html[/color]
            >
            > That page uses :hover on <li> elements, which only some marginally used
            > browsers support. No dependance on javascript at all, woohee! But it must be
            > possible for the major browsers to read the css rules and build some
            > onmouseover event handlers on the fly. Has anyone tried that yet?[/color]

            Not really, but to give (another) silly example in such a direction ;) :


            WD


            Comment

            • Matt

              #7
              Re: hyperlinks question

              Ivo wrote:
              [color=blue]
              > "Stephen Poley" wrote[color=green]
              >> Though for something just slightly different, which you might like
              >> better when you've seen it, try
              >> http://www.meyerweb.com/eric/css/edge/menus/demo.html[/color]
              >
              > That page uses :hover on <li> elements, which only some marginally used
              > browsers support. No dependance on javascript at all, woohee! But it must be
              > possible for the major browsers to read the css rules and build some
              > onmouseover event handlers on the fly. Has anyone tried that yet?
              > Ivo[/color]

              Not exactly the same thing, but it could be adapted:
              <http://www.htmldog.com/articles/suckerfish/example/>

              --
              Matt


              -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
              http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
              -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

              Comment

              Working...