Klaus Hartl schreef:
>
> Onno Timmerman schrieb:
>> The first background is defined in the CSS layout called #tabs
>>
>> One click I need the browser to load a new background image.
>> $("div#tabs").css("background-image", "url(\"./images/tabs/" + this.id +
>> ".gif\")");
>>
>>
>> this.id == the name of the background image.
>>
>> This works in all browsers known to me except IE. Anybody a hint why
>> this is?
>>
>
>
> try:
>
> $("div#tabs").css("background-image", "url(./images/tabs/" + this.id +
> ".gif)");
>
> if that does not work:
>
> $("div#tabs").css({backgroundImage: "url(./images/tabs/" + this.id +
> ".gif)"});
>
>
> There's a bug in jQuery for resolving CSS properties with a '-' in it,
> as far as I know.
>
>
> -- Klaus
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
Thanxs, you saved my day!
I don't understand why exactly but the last one works in IE. Both work
in FireFox. I hope it wil work in Safari as I can't test it now.
Is Safari and Konquerer the same for testing jquery script?
Onno
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/