Created
September 3, 2009 15:29
-
-
Save jakearchibald/180355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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