User Name
Password
AppleNova Forums » Programmer's Nook »

Bookmark tag behaviour


Register Members List Calendar Search FAQ Posting Guidelines
Bookmark tag behaviour
Thread Tools
Is it 1981?
Senior Member
 
Join Date: Mar 2005
Location: Londontown
 
2009-02-09, 16:42

My programming and developing skills are pretty minimal, so do bear with me...

I know you're able to have a link on a page that will take you to another section of the same page – and when you're taken to that new section, it's usually displayed flush with the top of the browser window (see this page from BBC News for example, scroll to the section labelled 'The Men's Suits' and click on the 'style notes' caption). Nothing unusual there.

But this excellent portfolio seems to be able to control how far down the screen each "new section" begins at. When you're taken to a new section, it doesn't start flush at the top of the page, but a good distance down from there, and I can't figure out how it's done.

If anyone's able to help or has any ideas?

Helvetica is my bitch.
System: 27" iMac i7, 2TB, 8GB RAM, Mac OS X Snow Leopard
  quote
noleli2
Senior Member
 
Join Date: May 2004
Location: Chicago
 
2009-02-09, 18:39

Unless you're talking about something else, you should just need anchors.

At the point where you want the link to scroll to, add:
Code:
<a name="yourNameHere"></a>
The link to that anchor looks like:
Code:
<a href="#yourNameHere">Go to there!</a>
Don't forget the # in the href!
  quote
Is it 1981?
Senior Member
 
Join Date: Mar 2005
Location: Londontown
 
2009-02-10, 06:01

Anchors, that's the term I was looking for; thank you.

I'm aware of the method you posted, but my point is when you click to scroll to that specific point of the page, it's displayed flush to the top of the browser window.

The example site I gave (http://www.letskiosk.com) doesn't show this behaviour – and looking through the source code I can't figure out how they do it. If you or anyone could spare a few minutes, then that really would be much appreciated.

Helvetica is my bitch.
System: 27" iMac i7, 2TB, 8GB RAM, Mac OS X Snow Leopard
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
yellow (middle) window button: can I change behaviour? malcolm Genius Bar 6 2009-01-03 23:30
Weird iTunes Behaviour onlyafterdark Genius Bar 15 2005-08-15 04:23


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 15:08.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova