Skip to content

Instantly share code, notes, and snippets.

@Telltak
Created February 5, 2011 20:33
Show Gist options
  • Save Telltak/812767 to your computer and use it in GitHub Desktop.
Save Telltak/812767 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>canvas test</title>
<style>
#man1 {
background-image: url(man1.png);
width: 100px;
height: 100px;
}
<meta name="description" content=""/>
<script>
console.log(document.getelementbyid('man1').style.backgroundimage);
settimeout("", 1000);
document.getelementbyid('man1').style.backgroundimage="url(man1.png)";
</script>
</head>
<body>
<div id="man1"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment