javascript - Change Picture with JS -


i want change background picture(a div) javascript take database. picture embedded in css. want use jquery.

css

.home_div {  width: 958px;  height: 350px;  margin-bottom: 12px;  background: url(../images/bg_home_div.png) } 

no jscript. use jquery on other part of website.

using jquery, can:

$('body').css('background-image', 'images/myimage.jpg'); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -