Skip to content

Instantly share code, notes, and snippets.

@Telltak
Created February 6, 2011 11:39
Show Gist options
  • Save Telltak/813314 to your computer and use it in GitHub Desktop.
Save Telltak/813314 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>canvas test</title>
<style>
#man1 {
width: 100px;
height: 100px;
}
</style>
<meta name="description" content=""/>
<script src="jquery.js"></script>
<script>
console.log($('#man'));
console.log(document.getElementById('man'));
document.getElementById('man').style.background="url(man2.png)";
</script>
</head>
<body>
<div id="man"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment