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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -