Because: 1. Your loading MooTools 1.1.2 2. The "opacity on hover" uses 1.2.4 API
Fix all JS errors and you'll find it working. ___ Oskar Krawczyk http://nouincolor.com On Fri, Mar 26, 2010 at 10:28 AM, Deepali <[email protected]> wrote: > Hello, > > I am using two mootool plugin on the same page > 1)mootab > > here is the demo for it > > http://mootools.net/shell/CDH3E/8/ > > 2)opacity on hover- > code is here- > > <script type="text/javascript" src="js/mootools.1.2.3.js"></script> > <script type="text/javascript"> > > (function($) > { > window.addEvent('domready',function() > { > //element collection and settings > var opacity = 0.3, toOpacity = 0.9; > > //set opacity ASAP and events > $$('div.opacity').set('opacity',opacity).addEvents({ > mouseenter: function() { > this.tween('opacity',toOpacity); > }, > mouseleave: function() { > this.tween('opacity',opacity); > } > }); > }); > })(document.id); > </script> > > Here is demo for it > http://davidwalsh.name/dw-content/opacity-hover.php > > > Can anyone please tell me why my both the plugin are not working on > the same page? > > Thanks in advance. > > To unsubscribe from this group, send email to mootools-users+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > To unsubscribe from this group, send email to mootools-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
