Page 1 of 1
htmn auto scroll?
Posted: Tue Dec 07, 2004 8:39 pm
by sutejok
Hi,
is there a way to put a link on my website, such that when a person click on that link, the person will actually get to that page, but its automaticly scrolled down a few pixels down?
well i'm not saying that it has to be in pixels, just kind of measurement, just that its scrolled down already when its clicked..
thx
Posted: Tue Dec 07, 2004 11:15 pm
by timvw
try using html anchors.
Posted: Tue Dec 07, 2004 11:32 pm
by sutejok
erm. i mean, the link does not belong to me. I dont have write access to those link targets..
Posted: Wed Dec 08, 2004 12:52 am
by timvw
in that case i'm affraid you can't change the viewport...
you could also fetch the page yourself... and add in the anchor where you want it.. and then serve the client your "customized" version of the page

Posted: Thu Dec 09, 2004 10:17 am
by AngusL
Copy and paste the page they link their page to so that it is called (WhateverTheNameWas)2.html. Change the original file to:
<html>
<head>
<meta http-equiv="Refresh" content="1;url=(WhateverTheNameWas)2.html#StartHere">
</head>
<body>
Please wait while you are redirected. If you are not automatically redirected, please click <a href="(WhateverTheNameWas)2.html#StartHere">
</body>
</html>
Then in the copy of the original file (the one with the proper content), find the bit where you want it to scroll to, and put <a name="StartHere"> right before the bit where you want it to scroll to.