By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

hyperlinks question

P: n/a
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?
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Ivo
"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/ >

HTH
Ivo
Jul 20 '05 #2

P: n/a
On Thu, 22 Jul 2004 04:25:30 +0200, "Ivo" <no@thank.you> wrote:
"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/
Jul 20 '05 #3

P: n/a
Ivo
"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
Jul 20 '05 #4

P: n/a
"Stephen Poley" <sb******************@xs4all.nl> wrote:
"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
Jul 20 '05 #5

P: n/a
"Ivo" <no@thank.you> wrote in message news:40********************@news.wanadoo.nl...
"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
Jul 20 '05 #6

P: n/a
Ivo wrote:
"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! =-----
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.