- Posts: 14116
- Thank you received: 1639
Menu not work
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
12 years 4 weeks ago #27861
by ivan.milic
Replied by ivan.milic on topic Menu not work
send me link so I could see
Please Log in to join the conversation.
-
JohnSmithers
Inactive member -
- Member
-
Less
More
- Posts: 40
- Thank you received: 0
12 years 4 weeks ago #27876
by JohnSmithers
Replied by JohnSmithers on topic Menu not work
Hi ivan
its the same link i provided previously. sent it through 'report to moderator'.
its the same link i provided previously. sent it through 'report to moderator'.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 weeks ago #27884
by ivan.milic
Replied by ivan.milic on topic Menu not work
In article with title "Contact Us" put id="contact" on any element to mark it as scrolling target. You can add
<a name="contact" id="contact" href="javascript:void(0);" >
I'm an target!
<a>
<a name="contact" id="contact" href="javascript:void(0);" >
I'm an target!
<a>
The following user(s) said Thank You: JohnSmithers
Please Log in to join the conversation.
-
JohnSmithers
Inactive member -
- Member
-
Less
More
- Posts: 40
- Thank you received: 0
12 years 4 weeks ago #27937
by JohnSmithers
Replied by JohnSmithers on topic Menu not work
Hi
Okay I changed the code in "hot_onepage.js" as requested i.e.
jQuery(".scroll, .mp_topmenu a:not(.external)").click(function(event){
event.preventDefault();
try{
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
jQuery('html,body').animate({scrollTop:0}, 500);
}
});
And I added a target in the contact page as you suggested. However while the link works the scroll function does not. What should I try now?
Okay I changed the code in "hot_onepage.js" as requested i.e.
jQuery(".scroll, .mp_topmenu a:not(.external)").click(function(event){
event.preventDefault();
try{
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
jQuery('html,body').animate({scrollTop:0}, 500);
}
});
And I added a target in the contact page as you suggested. However while the link works the scroll function does not. What should I try now?
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 4 weeks ago #27941
by ivan.milic
Replied by ivan.milic on topic Menu not work
Just contact item -right, try instead :
put:
Code:
<p id="contact" style="text-align: center;"><a>Contact Us</a></p>
put:
Code:
<a id="contact" style="text-align: center;" >Contact Us</a>
Please Log in to join the conversation.
-
JohnSmithers
Inactive member -
- Member
-
Less
More
- Posts: 40
- Thank you received: 0
12 years 3 weeks ago #27983
by JohnSmithers
Replied by JohnSmithers on topic Menu not work
Yes I had tried this too and have retried for you. Still does not scroll, only jumps to the page.

Please Log in to join the conversation.
Time to create page: 0.089 seconds