 <pre><code>var background = $('body').css('background-image'); var start = background.substr(0, background.lastIndexOf('.')); var end = background.substr(background.lastIndexOf('.')); $('body').css('background-image', start + '_something_more' + end); </code></pre>