html - javascript go to herf and scroll to element -


My question is how can I get this code href in a link and when the link is being loaded, the element Scroll to

})

This link is to take all the links to the same page when I click on sublink (link with "class =" jumper ") , Then to go to that page and scroll that element

is an atom name to indicate which div to know it

  & Lt; Li class = 'has-sub' & gt; & Lt; A href = 'cursus.php' & gt; & Lt; Span & gt; Cursor & lt; / Time & gt; & Lt; / A & gt; & Lt; Li class = 'last' & gt; & Lt; A class = "jumper" href = 'cursus.php' name = '5' & gt; & Lt; Span & gt; Android Phones & amp; By tablet & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php' name = '4' & gt; & Lt; Span & gt; Software & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A square = "jumper" href = 'cursus.php' name = '3' & gt; & Lt; Period & gt; Hardware & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php' name = '2' & gt; & Lt; Span & gt; Windows 7 & amp; 8th & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php' name = '1' & gt; & Lt; Span & gt; Microsoft Office & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt;  

Is anyone getting the answers to me?

Try using it like this ...

  & Lt; Li class = 'is-all' & gt; & Lt; A href = 'cursus.php' & gt; & Lt; Span & gt; Cursor & lt; / Time & gt; & Lt; / A & gt; & Lt; Li class = 'last' & gt; & Lt; One class = "jumper" href = 'cursus.php # 5' & gt; & Lt; Span & gt; Android Phones & amp; By tablet & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php # 4' & gt; & Lt; Period & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php # 3' & gt; & Lt; Span & gt; Hardware & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = 'cursus.php # 2' & gt; & Lt; Span & gt; Windows 7 & amp; 8th & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "jumper" href = '# 1 cursus.php' & gt; & Lt; Period & gt; Microsoft Office & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt;  

and your cursus.php page

  $ ('html, body'). Animate ({scrollopop: $ (window.location.hash) .offset (). Top});  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -