$('#content-top').css("background-image", "url(" + src + ")");

is the correct code

so either:
1) "src" is not a valid path (firebug will tell.show you this)
2) the selector isn't finding anything



On Dec 10, 11:54 am, Kris <[EMAIL PROTECTED]> wrote:
> I have tried both the following but neither seem to work.
>
> [code]
> $('#content-top').css('backgroundImage', "url(" + src + ")");
> $('#content-top').css("background-image", "url(" + src + ")");
> [/code]
>
> Any ideas would be welcome, thanks.

Reply via email to