Skip to content

Instantly share code, notes, and snippets.

@henriquegogo
Created March 15, 2011 18:59
Show Gist options
  • Save henriquegogo/871237 to your computer and use it in GitHub Desktop.
Save henriquegogo/871237 to your computer and use it in GitHub Desktop.
Mostra uma hint "help" quando passa pelo input
<script>
function ajuda(qual, msg) {
var ajudante = document.getElementById("ajudante");
ajudante.style.display = "block";
ajudante.style.top = (qual.offsetTop - 26);
ajudante.style.left = qual.offsetLeft;
ajudante.innerHTML = msg;
}
</script>
<div id="ajudante" style="display: none; position: absolute; padding: 3px; background: #FFF9D9;"></div>
<input onmouseover="ajuda(this, 'Nada de expetacular')" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment