SharkBait Posted August 10, 2007 Share Posted August 10, 2007 I am looking for advice on how I should look at doing drop down menus for a website. dHTML would be ok because at least I can make the javascript easier cross-plateform except I have troubles with getting the menus in the right spots when you 'onmouseover' Pure CSS drop down menus would be nice but then I would have to worry about cross-platform issues like IE6 doesn't like the 'hover' attribute li tags (think that was the reason for the 'hack'). Anyway what can people suggest? (without 3rd party script) Looking mainly for tutorials or something I can play with and see what I can create. For some reason looking up 'dhtml horizontal menu tutorial' on google doesn't exactly show me what I want lol! I can do drop down menus with javascript but they 'expand' the menu and not 'popup' a seperate <div> over top (so things don't get shifted around etc). Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/ Share on other sites More sharing options...
jcombs_31 Posted August 10, 2007 Share Posted August 10, 2007 I like suckerfish dropdowns. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-320827 Share on other sites More sharing options...
SharkBait Posted August 13, 2007 Author Share Posted August 13, 2007 Wow I like that a lot too. I mean it's a nice clean way of getting it to work with IE. Thanks! For those who want the link to the SuckerFish Drop down: http://www.alistapart.com/articles/dropdowns/ Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-322627 Share on other sites More sharing options...
Stopofeger Posted August 15, 2007 Share Posted August 15, 2007 Thanks man for that, I was really looking for a decent drop-down. Otherwize I was trying YUI widget which is big and complex. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-324581 Share on other sites More sharing options...
Azu Posted August 17, 2007 Share Posted August 17, 2007 Javascript is the past, CSS is the future. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-326972 Share on other sites More sharing options...
jcombs_31 Posted August 17, 2007 Share Posted August 17, 2007 Javascript is the past, CSS is the future. That doesn't even make sense, javascript is a programming language, css is not. They do 2 different things. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327106 Share on other sites More sharing options...
TheFilmGod Posted August 17, 2007 Share Posted August 17, 2007 Why drop down menus? I would consider a different navigational scheme. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327192 Share on other sites More sharing options...
Liquid Fire Posted August 18, 2007 Share Posted August 18, 2007 Javascript is the past, CSS is the future. Site designed with only tables is the past, CSS is the future or plain javascript is the past, Javascript+CSS is the future would be a better statements. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327282 Share on other sites More sharing options...
redbullmarky Posted August 18, 2007 Share Posted August 18, 2007 for more tutorials about this sort of thing, and to generally point out exactly how many "You HAVE to use JS for that!" things can be done in pure CSS, take a look here: http://www.cssplay.co.uk/menus. Javascript is far from being in the past - it's one of the most useful elements in a modern, interactive site, used for all sorts of effects, drag and drop, AJAX, etc. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327340 Share on other sites More sharing options...
Azu Posted August 18, 2007 Share Posted August 18, 2007 There is no excuse for using Javascript as presentation. That was the stone age. Time to move on to CSS Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327612 Share on other sites More sharing options...
Stopofeger Posted August 19, 2007 Share Posted August 19, 2007 There is no excuse for using Javascript as presentation. That was the stone age. Time to move on to CSS I will not totally agree with that. CSS and html is like dumb beauty with no logic capabilities. Loads of "BIG" sites still use JS for presentation in some way. So we still live in the "stone age". Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-327986 Share on other sites More sharing options...
Azu Posted August 19, 2007 Share Posted August 19, 2007 Only stupid sites like microsoft still use javascript/activex for presentation. If a site won't even display right without javascript, it shouldn't even exist. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-328206 Share on other sites More sharing options...
Daniel0 Posted August 19, 2007 Share Posted August 19, 2007 Only stupid sites like microsoft still use javascript/activex for presentation. If a site won't even display right without javascript, it shouldn't even exist. Gmail, Google Docs, Google Calendar etc. require Javascript... Well, Gmail does have a HTML only version, but it's not nearly as good. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-328219 Share on other sites More sharing options...
Stopofeger Posted August 20, 2007 Share Posted August 20, 2007 Only stupid sites like microsoft still use javascript/activex for presentation. If a site won't even display right without javascript, it shouldn't even exist. Which sites are stupid in your opinion? Loads of big sites still use JS and many of us still consider flash sites cool which is worse than even JS. CSS is not yet the all solving guru. It can never be without in-built logic which unfortunately only IE supports. So much for worse browser. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-328738 Share on other sites More sharing options...
Azu Posted August 21, 2007 Share Posted August 21, 2007 Only stupid sites like microsoft still use javascript/activex for presentation. If a site won't even display right without javascript, it shouldn't even exist. Gmail, Google Docs, Google Calendar etc. require Javascript... Well, Gmail does have a HTML only version, but it's not nearly as good. I understand that Ajax is completely javascript driven and there's no way around that. I'm talking about using it for presentation and links and stuff so that you can't even navigate the site without javascript, when CSS or plain HTML would have worked fine. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-329464 Share on other sites More sharing options...
jcombs_31 Posted August 21, 2007 Share Posted August 21, 2007 If you are comparing css and javascript for simple things like rollovers, fine, you have a point, but I highly doubt anyone is still using javascript for rollovers. I fail to see anywhere else that you can be making the comparison of js and css. That's like saying php is better than html. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-329959 Share on other sites More sharing options...
Azu Posted August 22, 2007 Share Posted August 22, 2007 But PHP IS better then HTML! HTML can't even access databases. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-330772 Share on other sites More sharing options...
Daniel0 Posted August 22, 2007 Share Posted August 22, 2007 But PHP IS better then HTML! HTML can't even access databases. HTML is a markup language and PHP is a programming/scripting language. HTML can do things PHP can't too. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-330907 Share on other sites More sharing options...
Azu Posted August 23, 2007 Share Posted August 23, 2007 What can HTML do that a programming language can't do? Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-332336 Share on other sites More sharing options...
neylitalo Posted August 23, 2007 Share Posted August 23, 2007 What can HTML do that a programming language can't do? Apples and oranges. It's like asking "What can a pencil do that an airplane can't?" HTML is not even remotely related to a programming language. It's simply a markup language, a pre-defined set of tags and attributes that our web browsers can read, and show us pretty pictures, colors, and words. All it's used for is formatting the information that you want to show. But if you really want your question answered, though, HTML can, for example, output italicized text. I'd like to see you make PHP do that. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-332362 Share on other sites More sharing options...
Azu Posted August 24, 2007 Share Posted August 24, 2007 [noparse]<?='<i>Hello!</i>'?>[/noparse] Edit: BAH! Damn SMF doesn't recognize noparse tags. -.- Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-332740 Share on other sites More sharing options...
Daniel0 Posted August 24, 2007 Share Posted August 24, 2007 [nobbc] is the tag to use... not bold bold Edit: I see you tried to use the <i> tag in the string, but that is still using HTML and it is the HTML that is making it italic when rendered by a browser. It just outputs <i>Hello</i>. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-332756 Share on other sites More sharing options...
Azu Posted August 25, 2007 Share Posted August 25, 2007 Okay. Well I'm sure you can generate italic text with the GD library. Not sure exactly how, as I've never used it before, but I'm sure it can be done. PHP should be able to detect what OS it's running on, and then open the picture of the text it made in an image viewer. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-334139 Share on other sites More sharing options...
Daniel0 Posted August 26, 2007 Share Posted August 26, 2007 Okay. Well I'm sure you can generate italic text with the GD library. Not sure exactly how, as I've never used it before, but I'm sure it can be done. PHP should be able to detect what OS it's running on, and then open the picture of the text it made in an image viewer. I suppose that it technically wouldn't be text then. It's just a number of e.g. black pixels on a white background arranged so you can read it as text. PHP cannot format text. That is just not what it is designed to do. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-334439 Share on other sites More sharing options...
Azu Posted August 26, 2007 Share Posted August 26, 2007 I'm sorry but don't browsers ALSO "format" text as "black pixels on a white background"? How else would it be done? (besides using different colors, obviously) o_O In fact, I think that kind of describes ALL visual output from computers.. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/#findComment-334482 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.