yes I agree on the inline JS (I guess I meant jQuery more than javascript before).
I see what you are saying about the 2kb, much nicer solution, however, how big is jQuery? I assume you have to have this installed on your server? I've not used that before. Actually I tend to avoid javascript if possible
You just download it from
http://jquery.com/ and call it like any other javascript file in the head tags.
Its a JS library that allows drag&drop, animations etc.
Jquery script itself is about 24kb.
It makes life alot easier.
To hide a div all you have to do is $('.divclass').hide(); or $('#divid').hide();
or do something like this
$(document).ready(function(){
$('.hidemessage').click(function() {
$('#message').hide('fast');
});
});
If you add class="hidemessage" then click what you've added it to, it will hide the div that has the id message.