Relative and HTML object based - Is this possible?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Drew99
Beginner
Beginner
Posts: 6
Joined: Tue Sep 16, 2003 8:14 pm

Relative and HTML object based - Is this possible?

Post by Drew99 »

Hi,
I have a web page that has a title bar made of images. The title bar is centered on the page and could move up or down due to browser differences, font size settings, etc. I want this to happen (if my user wants bigger fonts I respect that).

I'd also like to use it only for the pop-up menus, leaving the top level elements as images in a table (HTML object based). I'd prefer not to draw the entire menu using javascript - leaving the top level items as plain old HTML avoids another compatibility issue and means I don't need to code special cases for non-javascript browsers.

Can Milonic menu be used in this case? The sample that uses HTML elements to drop the menu seems to require all screen coordinates be fixed. The sample that shows a relatively positioned menu seems to require that the whole menu be drawn through javascript instead of using my HTML elements as triggers.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

See data at http://westcgi.west.asu.edu/sai/templat ... p_data.cfm, and the site at http://westcgi.west.asu.edu/sai/. However, this is a fixed menu, not a scroller, but it should get you started.
John
Drew99
Beginner
Beginner
Posts: 6
Joined: Tue Sep 16, 2003 8:14 pm

Post by Drew99 »

Thanks for the response!
The menu on your page is drawn by the Milonic function - I'm looking more for something that has HTML with an <a> tag triggering a dropdown menu. Along with that, the menu should align itself relative to the object that was mouse overed, regardless of how it lays out on the client's computer due to browser and font size, etc.

The learning curve on this is kind of steep, so I'm wondering if I should invest the time to figure out? It seems that it may not be possible, but I don't want to discover this after 5 days of trying to get it to work.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Maybe Dave could suggest a trigger tag.

In my design it would be easy to have an html link that turns on and off the menu. Right now while its acting up, you can see how one menu is placed on top of the other. You can't tell the difference between either except for now that the top position is off.

I think an on/off link would work nicely if its possible.

(I wish I kept the first version where there was a link in the html page to turn on and off the vertical menu.)

Regards
maz
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Try this...another gentleman wanted something like this and this was the best I could come up with at the time. Give it a shot.
viewtopic.php?t=2359
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Drew99
Beginner
Beginner
Posts: 6
Joined: Tue Sep 16, 2003 8:14 pm

Post by Drew99 »

This looks like it will do what I want - thanks a lot. It would have taken me a long time to come up with something like this.

Are there any downsides that you can think of? Does this technique reduce cross-platform functionality at all?

Thanks again!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

No not that I can see. All you are displaying is your nice images along the top with a popup event attached to them. And then below them are the menus bound to the cells relatively. Cant see anything wrong. Also, I have yet to see this implemented yet, so if you get it working or have problems, please let me know (either on the forum or my email), because maybe we could improve it.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Drew99
Beginner
Beginner
Posts: 6
Joined: Tue Sep 16, 2003 8:14 pm

Post by Drew99 »

I'm having some trouble with this working on NS4. The menus appear relative to thier cell in other browsers, but in NS4 they appear absolute to the upper left corner of the screen. I've put more detail into a post at the bottom of this thread:

viewtopic.php?t=2359

Thanks,

Drew
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I touched on that topic again, go see.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply