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 discuss@jquery.com http://jquery.com/discuss/