• Welcome to Valhalla Legends Archive.
 

html Anchors

Started by Denial, June 07, 2007, 05:52 PM

Previous topic - Next topic

Denial

I know when you Anchor id types it can go to a certain part of the page in a document but i forget if its possible to send a Anchor to a certain part of a page in another document or if they are only the same document ability.


For example   In Test.htm you have A subject and under that subject you have different places for example


Header

Mainsubject      Mainsubject2
Link                  Link
Link                  Link
Link                  Link



Now to click on a link and have to go to another document but not just go to that document but a certain place on that page
Actus non facit reum nisi mens sit rea

rabbit

As long as there are anchors in the destination, you can just add them on.
ie: <a href="page2.htm#blarg">some link</a> would work, assuming page.htm contains an anchor named "blarg".
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

iago

Quote from: rabbit on June 07, 2007, 07:34 PM
As long as there are anchors in the destination, you can just add them on.
ie: <a href="page2.htm#blarg">some link</a> would work, assuming page.htm contains an anchor named "blarg".

And within page2.htm, you have to have an anchor where you want it to jump to -> <a name='blarg' />
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


rabbit

Quote from: iago on June 07, 2007, 08:07 PM
Quote from: rabbit on June 07, 2007, 07:34 PM
As long as there are anchors in the destination, you can just add them on.
ie: <a href="page2.htm#blarg">some link</a> would work, assuming page.htm contains an anchor named "blarg".

And within page2.htm, you have to have an anchor where you want it to jump to -> <a name='blarg' />
Yeah, I made a typo.  I meant
Quote from: rabbit on June 07, 2007, 07:34 PM
page2.htm ...
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

iago

Quote from: rabbit on June 07, 2007, 10:00 PM
Quote from: iago on June 07, 2007, 08:07 PM
Quote from: rabbit on June 07, 2007, 07:34 PM
As long as there are anchors in the destination, you can just add them on.
ie: <a href="page2.htm#blarg">some link</a> would work, assuming page.htm contains an anchor named "blarg".

And within page2.htm, you have to have an anchor where you want it to jump to -> <a name='blarg' />
Yeah, I made a typo.  I meant
Quote from: rabbit on June 07, 2007, 07:34 PM
page2.htm ...
Well, I read it the way you intended. But you can't assume he knows how to add an "anchor" to a page, that was half of his question :P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Denial

I know how to add an anchor to the page i just didn't know if it was possible you can make the anchor relate to another page totally seperate
Actus non facit reum nisi mens sit rea