Open page in a particular section

Asked

Viewed 62 times

1

I’d like you to click a link (e.g., sports cars) to the new page, as soon as it’s loaded, run an animation up to the location of the "topic" sports cars.

Follow my project:

http://andrellfreire.esy.es/Treinamentos.html

In the courses part you have the option dsg 7 and when you click on it the details page > http://andrellfreire.esy.es/Treinamentoslista.html is loaded, however I wanted it to slide up to the part of dsg 7 (or that it was already loaded on it which would be better). The same would happen in the other options.

Thanks in advance for the help

1 answer

0


"...or that was already carried in it what would be better...". For this need not use jQuery, since the browser (browser) does it for us, trick is to insert the id section of the page you want to end up in in the URL as well. See if this is what you want:

http://andrellfreire.esy.es/Treinamentos.html#courses http://andrellfreire.esy.es/Treinamentoslista.html#dsg7

That is, you can insert right in the direct link:

...
<a href="Treinamentoslista.html#dsg7" target="_self">
...

The same can do for others

Browser other questions tagged

You are not signed in. Login or sign up in order to post.