I want to use jQuery as one of potentially many DHTML engines for my site. Therefor I want to move the events from my XHTML code to a JavaScript includes. I've not yet had anyone help me get any of the functions working though someone suggested using addEventListener. I'm not really good with JavaScript yet so I'm looking for a little help. If I can get one good working example I should be able to do the rest on my own.
This is one example... <h1 id="header1" onclick="$('#div01').BlindToggleVertically(1000, null, 'bounceout');return false;">...</h1> I know I should check for the existence of the object first, secondly listen for the event, and thirdly call the event when the conditions are met. I have the ideas at least conceptually in my head. Someone suggested checking for an ID using... if(document.getElementById("header1")) {alert ("This is a Javascript Alert")} ...however Gecko does not alert me even though the ID is there? That I might be able to figure out on my own butt he rest is way above my head right now.