I took a look at your site. In demo. Js if you change this line $('link').
Set('opacity', 0.5). AddEvents({ to this: $$('. Nav a div').
Set('opacity', 0.5). AddEvents({ you will achieve the same effect for every item in your nav menu You should read up on MooTools selectors for more about this. Selectors are a very powerful tool.
I took a look at your site. In demo. Js, if you change this line $('link').
Set('opacity', 0.5). AddEvents({ to this: $$('. Nav a div').
Set('opacity', 0.5). AddEvents({ you will achieve the same effect for every item in your nav menu. You should read up on MooTools selectors for more about this.
Selectors are a very powerful tool.
This was a great help. Up and working now. O will def.
Check out the mootools selector page for future reference. – user150744 Aug 7 '09 at 5:59.
The code below will take each of the nav link elements and add the mouseenter and mouseout events. //selects all nav elements $$('. Nav a div').
Each(function(el){ //this is the interior of the function that will run on each el //store the original bg color var color = el. GetStyle('backgroundColor'); //now add the mouseenter and leave events w/ the morphs el. Set('opacity', 0.5).
AddEvents({ mouseenter: function(){ // This morphes the opacity and backgroundColor this. Morph({ 'opacity': 1, 'background-color': '#000000' }); }, mouseleave: function(){ // Morphes back to the original style this. Morph({ opacity: 0.5, backgroundColor: color }); } }); }); hope this helps!
Using .each() is certainly better because it only does one loop. If you do it zombats way (no offense! ) it'll loop over the array when you set the opacity, and then loop it again when you add the events, and again if you chain more stuff.
– rpflo Aug 8 '09 at 18:40.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.