Probably borking because you cannot Fx manipulate non-numerical values, for instance a background image.
What is this finction intended to do? function hintergrund(){ var mhi = new Fx.Styles($('Inhalt'), {duration:200, wait:false}); mhi.start({ background: #000 url(../bilder/hslogo.jpg) top right repeat; }); } It looks like you are trying to set a background image, why not just do setStyle('background-image', 'URL'); ??? On Jun 5, 8:22 am, "asgaroth.belem" <asgaroth.be...@gmail.com> wrote: > I agree with fabio does that really work? > > On Jun 4, 10:16 am, "Robert Baron" <bar...@yahoo.de> wrote: > > > > > I got it: > > > It is: > > > Should be > > > mhi.start( { > > background: "#000 url(../bilder/hslogo.jpg) top right > > repeat"; > > }); > > > Should be > > > mhi.start( { > > background: '#000 url(../bilder/hslogo.jpg) top right > > repeat' > > }); > > > -----Ursprüngliche Nachricht----- > > Von: mootools-users@googlegroups.com > > [mailto:mootools-us...@googlegroups.com] Im Auftrag von Robert Baron > > Gesendet: Donnerstag, 4. Juni 2009 14:25 > > An: mootools-users@googlegroups.com > > Betreff: AW: [Moo] Re: two Java scripts > > > You are right. The domready function does have a single quote beside the > > attributes. > > > I have inserted single quotes, but nothing happend. > > > -----Ursprüngliche Nachricht----- > > Von: mootools-users@googlegroups.com > > [mailto:mootools-us...@googlegroups.com] Im Auftrag von Steve Onnis > > Gesendet: Donnerstag, 4. Juni 2009 13:34 > > An: mootools-users@googlegroups.com > > Betreff: [Moo] Re: two Java scripts > > > Shot in the dark but I think > > > mhi.start( { > > background: #000 url(../bilder/hslogo.jpg) top right repeat; > > > }); > > > Should be > > > mhi.start( { > > background: "#000 url(../bilder/hslogo.jpg) top right > > repeat"; > > }); > > > Steve > > > -----Original Message----- > > From: mootools-users@googlegroups.com > > > [mailto:mootools-us...@googlegroups.com] On Behalf Of logan2012 > > Sent: Thursday, 4 June 2009 8:20 PM > > To: MooTools Users > > Subject: [Moo] two Java scripts > > > I need two javascripts. One for effects on my table rows and another to call > > it from a php script when it is loaded. > > > Here is the js-code from index.php. It works with out the second function. I > > do not have any clue why I am doing wrong. It is complete separate function > > and I do created a complete new instance for Fx.Styles. > > > Here the code: > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > > "http://www.w3.org/TR/html4/loose.dtd"> > > > <html> > > <head> > > <link href="/joomlaserver/storz/templates/xyz/css/design2.css" > > rel="stylesheet" type="text/css" /> > > <link href="D:/xampp/htdocs/JoomlaServer/xyz/templates/storz/CSS/ > > design2.css" rel="stylesheet" type="text/css" /> <jdoc:include type="head" > > /> <script type="text/javascript"> window.addEvent('domready', function(){ > > var list = $$('.mainlevel'); > > > list.each(function(element) { > > > var fx = new Fx.Styles(element, {duration:200, wait:false}); > > > element.addEvent('mouseenter', function(){ > > fx.start({ > > 'margin-left': 15, > > 'background-color': '#999', > > color: '#ff8' > > }); > > }); > > > element.addEvent('mouseleave', function(){ > > fx.start({ > > 'margin-left': 0, > > 'background-color': '#000', > > 'color': '#ffffff' > > }); > > }); > > > }); > > }); > > > function hintergrund(){ > > var mhi = new Fx.Styles($('Inhalt'), {duration:200, wait:false}); > > > mhi.start({ > > background: #000 url(../bilder/hslogo.jpg) top right > > repeat; > > }); > > } > > > </script> > > > </head> > > ...