Addendum: jQuery also works without problems side-by-side with MooTools in noConflict() mode.
On Jul 20, 9:56 am, Sebastien BRUNEL <srbru...@gmail.com> wrote: > Hi > I have developped this function in jquery for a website, and i have to > use it on another site which is using mootools. I've tried to convert > it, but no way to make it works. So i ask for your help. > The goal of this 2 function is to have a good view of my banner, > without the gap of one or two pixel due to the resolution of users. > > Thanks you and sorry for my bad english. > > $(function (){ > var pos = $("#page").get(0); > $("body").css("background","#727271 url(squelettes/images/ > axome_fond.gif) repeat-x "+pos.offsetLeft+"px 0"); > > }); > > $(window).bind('resize', function() { > var pos = $("#page").get(0); > $("body").css("background","#727271 url(squelettes/images/ > axome_fond.gif) repeat-x "+pos.offsetLeft+"px 0"); > > });