I see, the path is not relative to the css file (../images/banner/
default.gif) that first set background, its relative to root (images/
banner/custom.gif).
Many thanks for confirming I had correct syntax, one of those where
you can bang your head aginst the walls for days!!
The first one is correct, are you sure your selector is right? Check
the styles tab in Firebug and you'll see that the background was
indeed applied.
- ricardo
On Dec 10, 2:54 pm, Kris <[EMAIL PROTECTED]> wrote:
> I have tried both the following but neither seem to work.
>
> [code]
> $('#content
$('#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 neithe
3 matches
Mail list logo