PDA

View Full Version : Debate? - Why are JS menu's so complicated?!



JOHN_DOE
12-12-2005, 01:47 PM
Recently, I've been doing alot of research/browsing on the various javascript menus out there. But I still don't understand WHY people make them so complicated? I know that you can/should browser sniff and write code according... but really... there are hundreds of browsers out there! WC3 seemed to have standarized things and most browsers are capable of following these standards now... aren't they? I wrote a simple menu (with a little javascript and CSS) and it seems to be compatible with most browsers? So why are so many people making things so complicated?... Just wanted to hear some input?........ :confused:

jscheuer1
12-12-2005, 02:39 PM
I think it is for all the 'bells and whistles' that can only be included cross browser using at least object testing. Browser sniffing isn't such a hot idea and the same code should be able to be rewritten using object testing. Even object testing isn't so vital if you are willing to let go of all browsers that - say, don't support document.getElementById.