Creating a drop down menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to add a drop down box that appears when someone hovers over
title, displaying sub-titles within that area and where these sub-titles can
link to other content on the site.
HELP!
 
This may do what you want.

It creates a single column table (actually a single column table nested within a single column table).
The heading is visible, but when you mouse over it, the entries (rows) with links in them become visible,


<head>
.......
<style>
..menu {position: absolute ; visibility: hidden ;}
</style>
.......
<script type="text/javascript">
function showhide(elmnt,state)
{ document.all(elmnt).style.visibility=state}
</script>
.....
</head>

<body>
.......
<table border>
<tr>
<td onmouseover="showhide('links','visible')"
onmouseout= "showhide('links','hidden')">
<b>Internal Links</b>

<table id="links" class="menu" border>
<tr>
<td>
<a href="your link in here" target="_top">
your text in here</a>
</td>
</tr>
..........
further links (as extra rows of this table)
.........
</table>
</td>
</tr>
</table>


I have extracted this code from code which works for me, so I hope I haven't left anything out. If it doesn't work, then I have ( left something out, that is)
--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
Thanks Trevor, only problem is when I go to click on one the links the new
box disappears. Any ideas?
Thanks
 
Jess,

I am not quite sure what you mean by the new box disappearing. Do you mean
the box that drops down when you hover over the title?

If so, well the whole menu would disappear because the page linked to
replaces the current page. But you should be able to go back with the green
arrow on the top left hand side. Hovering over the title again should drop
the items down again. If it doesn't, then I must have not explained my code
properly, or I left something out when I copied it, or I misunderstood your
set-up.

If you send a URL, I can look at it. I am a beginner, but I should be able
to pick whether your code is trying to do the same as mine.

One thought I just had was that you may be linking to the same page, when
the drop down would of course disappear. But that is the point of drop
downs. I may be able to say more if I see your page

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top