HighDots Forums  

hyperlinks question

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss hyperlinks question in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JoeyMichelle
 
Posts: n/a

Default hyperlinks question - 07-21-2004 , 07:07 PM






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?



Reply With Quote
  #2  
Old   
Ivo
 
Posts: n/a

Default Re: hyperlinks question - 07-21-2004 , 10:25 PM






"JoeyMichelle" wrote
Quote:
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.
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




Reply With Quote
  #3  
Old   
Stephen Poley
 
Posts: n/a

Default Re: hyperlinks question - 07-22-2004 , 01:51 AM



On Thu, 22 Jul 2004 04:25:30 +0200, "Ivo" <no (AT) thank (DOT) you> wrote:

Quote:
"JoeyMichelle" wrote
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.

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/
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
http://www.meyerweb.com/eric/css/edge/menus/demo.html

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #4  
Old   
Ivo
 
Posts: n/a

Default Re: hyperlinks question - 07-22-2004 , 01:22 PM



"Stephen Poley" wrote
Quote:
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
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




Reply With Quote
  #5  
Old   
Warden Dave
 
Posts: n/a

Default Re: hyperlinks question - 07-22-2004 , 06:16 PM



"Stephen Poley" <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote:
Quote:
"JoeyMichelle" wrote

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/

A poor example, because readers without Javascript cannot get to the
underlying links.
Hmm. It was just a JS example without proper HREF attribute values; thats all.
Same thing, but with (some) more usefull values:
http://www.ingereisberman.nl/totaal/menu_wd.htm

WD




Reply With Quote
  #6  
Old   
Warden Dave
 
Posts: n/a

Default Re: hyperlinks question - 07-22-2004 , 06:28 PM



"Ivo" <no (AT) thank (DOT) you> wrote

Quote:
"Stephen Poley" wrote
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

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?
Not really, but to give (another) silly example in such a direction :
http://www.mnsys.org/niwo/ul2menu1.html

WD




Reply With Quote
  #7  
Old   
Matt
 
Posts: n/a

Default Re: hyperlinks question - 07-23-2004 , 04:38 PM



Ivo wrote:

Quote:
"Stephen Poley" wrote
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

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
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! =-----


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.