anarchojoseph Posted March 26, 2010 Share Posted March 26, 2010 which part of the w3schools tutorial goes over menus? I haven't been able to find it. I want to create a menu on the left side of my site, but I'm not sure how to. Do you think I should use a vertical frameset? thanks Link to comment Share on other sites More sharing options...
ShadowMage Posted March 26, 2010 Share Posted March 26, 2010 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. Link to comment Share on other sites More sharing options...
thescientist Posted March 26, 2010 Share Posted March 26, 2010 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 More sharing options...
real_illusions Posted March 26, 2010 Share Posted March 26, 2010 (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 More sharing options...
niccio Posted March 27, 2010 Share Posted March 27, 2010 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 More sharing options...
thescientist Posted March 27, 2010 Share Posted March 27, 2010 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 More sharing options...
jeffman Posted March 27, 2010 Share Posted March 27, 2010 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 More sharing options...
knystrom18 Posted March 28, 2010 Share Posted March 28, 2010 Again, Dierdre is spot on. Link to comment Share on other sites More sharing options...
8november.net Posted March 29, 2010 Share Posted March 29, 2010 Hello there,introducing my website: www.8november.netthere you see I have an drop down menu,it cost me some headache and ??? to have it fixed.but remember implement what customers wants, not what you want!my regards, Andreas from Australia Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.