14696size and scroll bars positionhttp://www.softcomplex.com/docs/get_window_size_and_scrollbar_position.htmlHere I attempted to create a reliable method to read the client size of the of the browser's window and the position of the scroll bars. Of course this wouldn't be a problem if all browsers were well written and followed the standards. As we all know it's not the case -- different versions of different browsers under different platforms in different modes have own ideas on how this simple information should be provided. Adjusting the script for different browsers can be real pain when after making code work in one browser you find out it no longer works in another.JavaScript > Tips and Tutorials > DHTMLOct 12, 2006Softcomplex, Inc
The initial solution adopted by most developers is dynamically hide a form controls by having them lose display when the CSS menu drops. Though doing this may seem to be strange and blinky it is better than not trying to fix the problem. But site vistors might be bothered a bit by things dancing around on the webpage. It is distracting and may be a cause for dozens of emails to the webmaster.
The advantage of using the DOM to bind an event is that you can assign multiple functions to a node for the same event (ie: window.onload) without running into event handler conflicts.
Here I attempted to create a reliable method to read the client size of the of the browser's window and the position of the scroll bars. Of course this wouldn't be a problem if all browsers were well written and followed the standards. As we all know it's not the case -- different versions of different browsers under different platforms in different modes have own ideas on how this simple information should be provided. Adjusting the script for different browsers can be real pain when after making code work in one browser you find out it no longer works in another.
As you can tell by the title, I intend this to be a multi-part series on using moo.fx to create better forms. In the first installment we are going to create a form that displays a hint to the user about the type of information that is expected in an input box.
Returns an array (NamedNodeMap) containing all the attributes defined for the element in question, including custom attributes. IE6 returns not just attributes explicitly defined by the webmaster, but those of the element's internal DTD as well. In Firefox, attributes[] work more as expected, returning only user defined attributes, and even reflect changes done by scripting to an attribute
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.