Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created September 3, 2009 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakearchibald/180355 to your computer and use it in GitHub Desktop.
Save jakearchibald/180355 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
(function() {
var glow;
gloader.load(
["glow", "1", "glow.widgets.Panel"],
{
async: true,
onLoad: function(g) {
glow = g;
init();
}
}
);
function init() {
var myPanel = new glow.widgets.Panel(...);
// use glow
glow.events.addListener('span.rawVocab', 'mouseenter', function() {
myPanel.body.html(this.innerHTML);
myPanel.show();
})
glow.events.addListener('span.rawVocab', 'mouseleave', function() {
myPanel.hide();
})
}
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment