Ahh ok. We'll have to make some adjustments and move the code from the form elements and put it into jquery.
This is merely a proof of concept that shows it can be done using jquery. I just tried this on a marketo generated form and it seems to work, although it's still a bit sketchy and needs further modification. This should get you going in the right direction, if your up to hacking at it.
This is what I did:
1. Right clicked on landing page that contains my form, and edited draft.
2. Dragged out a new instance of the custom HTML box onto the page.
3. When the Custom HTML Editor dialog box appeared, pasteed in the below code.
<script type='text/javascript' src='http://code.jquery.com/jquery-1.4.4.min.js'></script>
<script type='text/javascript'>
$(window).load(function(){
var mrktoformthing = new Array();
$("input").focus(function() {
if (!mrktoformthing[this.id]) {
mrktoformthing[this.id] = $(this).val()
}
if ( $(this).val()==mrktoformthing[this.id]) {
$(this).val('').css({'color': "#000000", 'font-style': 'italic', 'font-weight': 'bold'});
}
$(this).css({'background-color':'#e9f7eb' });
if(this.mrktoformthing == this.mrktoformthing){
$(this).val("");
}
});
$("input").blur(function() {
if ( $(this).attr("value")=="") {
$(this).val(mrktoformthing[this.id]).css({'color': "#ccc", 'font-style': 'italic', 'font-weight': 'normal'});
}
$(this).css({'background-color':'#fff' });
});
});
</script>
It's an interesting project, and if I have some time this week end, I'll try to get it working properly and targeting all form elements.