The below script should allow you to insert a title attribute to the input field and then you can use that as infield label. I am sure there are other ways to write the below script, but I have tested the below and know that it does work. Now remember, this is very basic, and the form will submit with these values in those fields if the lead just submits the form. There are work arounds for this, you'll have to do some Google'ing, as there are many resources.
Replace the current script with this:
<script language="Javascript" src="/js/public/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
// use no conflict mode for jQuery
var $jQ = jQuery.noConflict();
// when the page is ready, add title attribute to field
// use field ID, you'll need a line for each field, as seen below.
$jQ(document).ready(function () {
$jQ('#FirstName').attr('title', 'First Name');
$jQ('#LastName').attr('title', 'Last Name');
$jQ('#Email').attr('title', 'Email');
$jQ('#Title').attr('title', 'Title');
});
// use no conflict mode for jQuery
var $ = jQuery.noConflict();
// transform title of field into infield label
$(document).ready(function () {
$('input[title]').each(function () {
if ($(this).val() === '') {
$(this).val($(this).attr('title'));
}
$(this).focus(function () {
if ($(this).val() == $(this).attr('title')) {
$(this).val('').addClass('focused');
}
});
$(this).blur(function () {
if ($(this).val() === '') {
$(this).val($(this).attr('title')).removeClass('focused');
}
});
});
});
</script>