473,320 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

need some help with drop down menu

I have a fairly simple page serving as a portfolio. It is a long page,
with narrative and large thumbs which link to other pages, larger
photos, pdf files, etc.

Near the top of the page, I have a drop down SELECT form serving as a
menu to the page.

Two things bother me about it.

There are 11 sections listed (less the first line, which is just a
title "Portfolio Index"). But only 10 lines appear when the drop down
is selected. I would like them all to show in the box (and I may add
another line or two).

Secondly, after each section on the page, I have a jump back link to
the top of the page. When this is done, the drop down shows the last
section selected. I would like to force it to show the top line,
"Portfolio Index" each time.

Thanks in advance...

MJE

Nov 11 '05 #1
2 1266
On 11 Nov 2005 13:03:42 -0800, mj******@aol.com wrote:
[snip - using select for a menu]
There are 11 sections listed (less the first line, which is just a
title "Portfolio Index"). But only 10 lines appear when the drop down
is selected. I would like them all to show in the box (and I may add
another line or two).

Secondly, after each section on the page, I have a jump back link to
the top of the page. When this is done, the drop down shows the last
section selected. I would like to force it to show the top line,
"Portfolio Index" each time.


Select elements behave like this because they were designed for use in
forms. I'm sure your second problem can be fixed in Javascript (I'll leave
it to another poster to say how), but your first problem is due to a design
decision on the part of the browser makers (to make forms usable) and
cannot be overridden. The solution is to use a div element for the
drop-down menu, rather than a select element. Here's a very simple way
(that is, it uses very little code) of doing a menu using divs that also
degrades nicely:

http://www.safalra.com/programming/j.../dropdown.html

--
Safalra (Stephen Morley)
http://www.safalra.com/programming/javascript/
Nov 11 '05 #2
Thanks for you suggestion Stephen...

I'll take a look at your code, but someone else (in a PM) showed me how
to solve the second problem, so I may leave it as a form select, and
figure out how to consolidate it to 10 lines or less.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mudcat | last post by:
Howdy, I'm trying to create a selection helper, just like in Google or other places where a drop-down menu appears below the text selection box when you enter some text. As you type, the choices...
3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
2
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu...
4
by: simon.cigoj | last post by:
I have an javascript made menu and some forms with the dropdown element. When the menu opens and scrolls down the drop down is displeyed over the menu and obscures the menu choices. I have this...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
5
by: Marks | last post by:
Ok Guys, Was hoping if you could help me. I want to create a drop down filter in Access Forms. This names and fields are just examples. I basically want drop down menu 1 to show the field...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.