a javascript string problem?
<p>i have this script, but i the <code>result.bgimage</code> is not showing up, i think <code>JS</code> thinks its a string rather than variable!!! how can i solve this problem? thanks</p>

<pre><code>$('#bg')
    .animate({opacity: 0}, 'slow', function() {
        $(this)
            .css({'background-image': 'url(result.bgimage)'})
            .animate({opacity: 1});
    });
</code></pre>
