To switch a div background image in jQuery you can use the following snippet.
Sample jQuery
$("#myImageId").attr("src","newImage.jpg");
To switch a div background image in jQuery you can use the following snippet.
$("#myImageId").attr("src","newImage.jpg");
To change case in Python you can use the following methods.
To detect a screen orientation change in Javascript you can use the following snippet.
window.addEventListener("orientationchange", function() { //0 = potrait //90 or -90 = landscape left or landscape right }, false);
some devices do not fire the orientationchange event, try the resize event instead.
window.addEventListener("resize", function() { // check screen size (inner and outer!) }, false);