Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created September 5, 2010 15:10
Show Gist options
  • Select an option

  • Save qoelet/566081 to your computer and use it in GitHub Desktop.

Select an option

Save qoelet/566081 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Dojo - Hello World!</title>
<link href="dojo1.5/dojo/resources/dojo.css">
<script src="dojo1.5/dojo/dojo.js" type="text/javascript"></script>
</head>
<body>
<div id="hello">Hello Dojo!</div>
<script type="text/javascript">
var hello = dojo.byId('hello');
var hoverme = dojo.connect(
hello, "onmouseover", null, function(e) {
console.log("you rolled over " + e.clientX + ", " + e.clientY);
dojo.disconnect(hoverme);
}
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment