Posts in: JavaScript/ECMAScript
- DOM and JavaScript image rollover
- It’s a simple script — about nine lines of JavaScript total. Just add the imageSwapIn and imageSwapOut functions to onmouseover and onmouseout event handlers in the containing element for your image (usually a link). The first function takes two parameters: the image id — which you set using the id value, or by using the [...] [30 Oct 2006]
- Today’s DOM scripting tip
- Something I learned after many hours of lamenting “Why in the hell doesn’t this work in IE 6?” When setting a class name for an element, use element.className instead of element.setAttribute(’class’,'nameOfClass’) for compatibility with Internet Explorer 6. The latter should work just fine in Internet Explorer 7. I’d avoid using element.style completely to provide the best separation [...] [26 Oct 2006]
- Douglas Crockford on the DOM
- Via the Web Standards Project: Three videos by Douglas Crockford giving some theory on the Document Object Model and how different browsers handle it. It’s a dry presentation. Like the Sahara. Like twice-burnt toast. Like wind in the desert. I think this was an in-house video for Yahoo! developers, and in that context, I can [...] [25 Oct 2006]
- JavaScript’s Date object, half explained
- This one is for the JavaScript newbies (myself included) :-). For a full description and explanation of the Date object and what it does check the Core JavaScript 1.5 Reference. What I’m going to tell you here is only one way in which it works. The Date object takes up to seven parameters:* new Date(year_number, month_number, day_number, hour_number, [...] [3 Oct 2006]
- Link dump: Aug 6, 2006
- Javascript Boot Camp Tutorial Groovy bits from Amy Hoy’s talk at OSCON 2006. [Via Spun] .NET developers make more money No mention of Java web developers. And even less mention of a methodology, so take it for what it’s worth. UPDATE: The author says: I began searching job sites for currently available jobs within the US that said [...] [6 Aug 2006]
- Link dump: May 14, 2006
- JavaScript evolution to follow Python, creator says JavaScript will be moving closer to the structure of Python with version 2 … er, maybe I need to add Python to my list of must learns. Brendan Eich: JavaScript 2 and the Future of the Web Related to the above link, Ajaxian has a bit about Eich’s reasons for a [...] [14 May 2006]