jsfiddle.net/simevidas/vjxBK/2 $('div. One'). Mouseenter(function() { $(this).hide().next().show(); }); $('div.
Two'). Mouseleave(function() { $(this).hide().prev().show(); } Note that in order for this solution to work, the one and two DIV pairs have to have equal heights. Otherwise the cursor might not be over the two element once one is hidden in which case the mouseleave event would not fire.
jsfiddle.net/simevidas/vjxBK/2/ $('div. One'). Mouseenter(function() { $(this).hide().next().show(); }); $('div.
Two'). Mouseleave(function() { $(this).hide().prev().show(); } Note that in order for this solution to work, the . One and .
Two DIV pairs have to have equal heights. Otherwise the cursor might not be over the . Two element once .
One is hidden in which case the mouseleave event would not fire.
1 The moddle of SO is to post the answer. Otherwise the solution is blind to the data dumps or lost if jsfiddle goes down. – Stefan Kendall Feb 27 at 2:49 @Stefan True... – Å ime Vidas Feb 27 at 2:50 Great!
This worked. I was working with . Find and forgot about next() and prev().
Thanks and thanks to everybody on this Saturday evening! – Rimsky Feb 27 at 3:55 I spelled "model" as "moddle" and didn't think twice, and I wasn't even drinking. – Stefan Kendall Feb 27 at 4:51 @Stefan Yea, I noticed that word, but I'm not a native speaker so I thought it's just some fancy word that I still haven't heard of :) – Å ime Vidas Feb 27 at 13:28.
If you hover over div one, and then let it disappear, you're not hovering over it anymore. I'd suggest html like this for instance: content1 content2 And then in css something like: . Outer .
First {display: block;} . Outer . Inner {display: none ;} .
Outer:hover . First {display: none;} . Outer:hover .
Inner {display: block ;}.
If you want to support this in IE8, you need to do this with jQuery. – Stefan Kendall Feb 27 at 2:46 It actually does since IE7, as long as you use strict, and don't let IE kick into quirks mode. Bernzilla.Com/item.
Php? Id=762 – markijbema Feb 27 at 2:51.
$(". One"). Hover( function(){ $(this).
ToggleClass("two","one"); }, function(){ $(this). ToggleClass("two","one"); } ).
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.