Scroll To help! confused..
I have a little problem. I am making a basic website and I wanted a scrollto function but I have no idea how to start.
I wanted that if you click on a link say for example "25th May" it would go to a different page where the text is but scroll or jump to that section.
Does anyone have any ideas of how to go about this?
Thanks in advance!
you have to put the proper anchor in the next page markup - something like this:
and then add the name of this anchor as a part of url in the href attribute of the link on you first page:
the part aftrer the # sign is called 'hash'.
<a href="nextpage.htm#25_may">25th May</a>
Hi there jamesy23,
Give an id - ( let's say id="may25" ) to an element, it does not necessarily have to be the a element,
to which you wish to scroll, then use this code...
<a href="the-new-page.html#may25">25th. May</a>
Last edited by coothead; 05-13-2012 at 01:45 PM.
Reason: spelling error
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread