1jQuery(document).ready(function($) {
2 $('.bg-image').css("background-image", "url('myurl.jpg')");
3});
1$(document).ready(function() {
2 $("button").mouseover(function() {
3 var p = $("p#44.test").css("background-color", "yellow");
4 p.hide(1500).show(1500);
5 p.queue(function() {
6 p.css("background-color", "red");
7 });
8 });
9});
10
1var imageUrl = "images/sky.jpg";
2$(".div_with_class").css("background-image", "url(" + imageUrl + ")");