htmn auto scroll?

It doesn't matter if you do all the error checking in the world, or if you have the most beautiful graphics, if your site or application design isn't usable, it's not going to do well. Get input and advice on usability and user interface issues here.

Moderator: General Moderators

Post Reply
User avatar
sutejok
Forum Commoner
Posts: 37
Joined: Wed Mar 24, 2004 4:08 pm

htmn auto scroll?

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

try using html anchors.
User avatar
sutejok
Forum Commoner
Posts: 37
Joined: Wed Mar 24, 2004 4:08 pm

Post by sutejok »

erm. i mean, the link does not belong to me. I dont have write access to those link targets..
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
AngusL
Forum Contributor
Posts: 155
Joined: Fri Aug 20, 2004 4:28 am
Location: Falkirk, Scotland

Post 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.
Post Reply