Up vote 0 down vote favorite share g+ share fb share tw.
If someone could help me find the solution of my problem. The jquery code is made so that when I click on my menu items it will scroll to that section of the site. But the only problem is that it only works for the first 3 items.
Anyone knows why, that when I click on item 4 (#nav 4) that I keep going to my #cont_home and not my #cont_contact like I referred in the jquery code. $("#nav1"). Click(function(){ $('html, body').
Animate({ scrollTop: $("#cont_home").offset(). Top}, 1500 ); }); $("#nav2"). Click(function(){ $('html, body').
Animate({ scrollTop: $("#cont_biografie").offset(). Top}, 1500 ); }); $("#nav3"). Click(function(){ $('html, body').
Animate({ scrollTop: $("#cont_portfolio").offset(). Top}, 1500 ); }); $("#nav4"). Click(function(){ $('html, body').
Animate({ scrollTop: $("#cont_contact").offset(). Top}, 1500 ); }); This is really strange. I made a jsFiddle and it worked but if I test it on my webpage it doesn't work.
Jquery scrolltop link|improve this question edited Dec 18 '11 at 21:07 asked Dec 17 '11 at 13:04MunLau61.
I did one and your code works just fine, look here. There is something else, maybe with your markup or something. – Emre Erkan Dec 17 '11 at 13:09 2 Welcome to StackOverflow.
You issue seems unanswerable without a practical example. May you please setup a jsBin or a jsFiddle?! – Roko C.
Buljan Dec 17 '11 at 13:13 This is really strange. I made a jsFiddle and it worked but if I test it on my webpage it doesn't work. – MunLau Dec 17 '11 at 21:02 1 Is it possible that you've got multiple elements with #cont_contact in your markup?
– Pat Dec 17 '11 at 21:27.
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.