views:

55

answers:

3

Hi all,

I really like the cool feature of Stackoverflow that navigate you to a post when you click the link from you personaly page. How to achieve that feature? Thanks!

A: 

Um. Just link to the post directly?

Oded
+2  A: 

It just uses the '#' in the URL, and the "name" property of the "a" tag.

<a href="#silky">Go to silky</a>

...

<a name="silky">silky</a>
Noon Silk
Yeah, thx. And how is the fading orange band implemented? Thanks!
Roy
+3  A: 

You know, one nice thing (or awful, depends on points of view... :)) of Web applications, is that you can always see the source code, at least the one on the client side.
Now, it can have warnings against re-using it (respect them!), it can be "compressed" ie. in one compact line (there are tools to re-format it), it can be obfuscated (variables renamed to be meaningless, should stand as case one, ie. "don't touch my code").
But basically, if you can read and analyze JavaScript, you can find out the techniques smart coders used.
And if you can't re-use the code as is, you can still find good ideas, algorithms, tricks; in short, learn from the masters. :)

PhiLho