Created
September 20, 2011 15:04
-
-
Save andershaig/1229346 to your computer and use it in GitHub Desktop.
Use Image Plugin for Background Image
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
<div id="bg" style="position:absolute;left:-9999px;"> | |
{% image background %} | |
</div> | |
<script type="text/javascript"> | |
var bg = $('#bg img').attr('src'); | |
$('body').css("background","url("+bg+") no-repeat"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment