Jump to content

a menu


anarchojoseph

Recommended Posts

I believe most developers use <ul>'s for menus. Though you can technically use whatever you wanted to. I've used <div>'s for menus and they work pretty well.
True, except I wouldn't use frames (as the OP suggested). In general I would avoid frames unless absolutely necessary. (like say a client was putting a gun to your head).
Link to comment
Share on other sites

(like say a client was putting a gun to your head).
depends if the gun was loaded or you have a flame thrower or rocket launcher hidden behind your back (although how you're going to hide those behind your back is probably going to be the least of your worries) :)
Link to comment
Share on other sites

Depending on the type of menu you want I've also found it effective to use code like:<a href="http://~target address~.com" target="_blank"><img src="~your pic~.jpg" style="position: absolute; top: 169px; left: 20px"; Border="none"; /></a><a href="http://~target address 2~.com" " target="_blank"><img src="~your pic~ 2.jpg" style="position: absolute; top: 201px; left: 20px"; Border="none"; /></a><a href="https://target address 3~.com/" target="_blank"><img src="~your pic~ 3.jpg" style="position: absolute; top: 233px; left: 20px"; Border="none"; /></a>I'll probably get spanked for putting up code like that but it's increadibly easy to line up your links and change them on the fly for different circumstances. It's also really easy to make new items down the road with a little cutty and a little pasty.

Link to comment
Share on other sites

giving copy paste code with positioning in it (especially absolute) doesn't really seem all that much helpful, considering you preface it by saying "depending on the type of menu you want...." and then offer code with absolute positioning. That does not lend itself nicely to many situations, in fact with what you gave would seemingly only work for one particular situation.I think the emphasis should be less on just using/offering copy/paste code and instead emphasize the reason why certain code is used, and in what situations you would use it in. And as real illusions mentioned, most developers tend to use <ul>'s for menu's.

Link to comment
Share on other sites

A menu is generally a combination of techniques, so it's beyond the scope of what the W3Schools offers. Assistance is available, but you need to be more specific about what you want. As you address the questions below, note that whenever you select the second option, you're asking for a more complicated thing. Not impossible. Just complicated.Do you want (1) a vertical menu or (2) a horizontal menu?Do you want (1) purely text items, or (2) items that are images or have image backgrounds?Do you want the menu items to (1) keep the same appearance on rollover or (2) change their appearance on rollover?If you want a changed appearance, what kind of change?Do you want (1) all the menu items visible all the time, or do you want (2) a drop-down menu?If it's a drop-down menu, do you want it to open up (1) when the mouse hovers over the heading, or do you want it to open up (2) when the user clicks the heading (this option requires JavaScript)?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...