tags:

views:

40

answers:

2

I'm not sure if this is possible, but I want to be able to click an external link with an anchor #anchor and have it animate scroll to that anchor tag after loading the page. Any help on this would be much appreciated.

<a href="http://foo.com/work/#foo&gt;Anchor Tag</a>

This would take you to foo.com/work and then animate you down to the #foo anchor tag.

A: 

No, this can't be done. The external page will have to implement the scrolling itself.

Even loading the external page in the frameset, and manipulating it after loading the link won't work because you can't access external document due to the Same Origin Policy.

Pekka
A: 

http://beski.wordpress.com/2009/04/21/scroll-effect-with-local-anchors-jquery/

I dont want to write the code :)

Copy paste code from here and there.

Use those click functions on your external page load.

It will work . Is it?

zod
Which one needs to be used onload of the external page?
Nicole
http://scripterlative.com/files/softscroll.htm
zod
http://www.ehow.com/how_4424747_link-anchor-tag-another-web.html
zod
http://articles.sitepoint.com/print/scroll-smoothly-javascript
zod
Hi Zod, thanks for the links. I've got it scrolling on the internal links, but what I want is when someone clicks on an external page, the page loads, and then scrolls to the anchor tag. Is this possible?
Nicole
whats happening there?
zod