i have a jquery script that allows for changing the body background
i want to have the background image of the body scaled to the browser window size there is a script called http://www.buildinternet.com/project/supersized/ but i am not able to make use of the scaling from that script because it effects the class img not the background-img
any ideas
<script type="text/javascript">
$(document).ready(function() {
$("#BGSelector a").click(function() {
var imgLink = $("img", this).attr("src");
$.cookie("html_img", "" + imgLink + "", { path: '', expires: 7 });
var imgCookieLink = $.cookie("html_img");
$("body").css("background", "url('" + imgCookieLink + "') no-repeat fixed center top #343837");
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
var imgCookieLink = $.cookie("html_img");
$("body").css("background", "url('" + imgCookieLink + "') no-repeat fixed center top #343837");
});
</script>