View Full Version : page anchors


one12_
04-20-2003, 09:16 AM
hey, um i did the page anchors thing on my website and i think i did it right but when i go to view it when say i press the first part, it goes to where i want it to for about a second, and then it goes back up to the top.. does anyone know why it does this?

this is how i did it

<a href="#codeword">whatever words you want to use</A>

^ what its sposed to be

<a href="#yeh">one12</A>

^ How i do it

and then the bottom bit is sposed to be like this

<A name="codeword"></A>

and i put it <A name="yeh"></A>


is that right or what? I'd appreciate your help a lot! thanks!

TheDisturbedOne
04-20-2003, 01:19 PM
TRY LOOKING HERE http://www.lissaexplains.com/html4.shtml#anchor

Shaneo
04-20-2003, 01:37 PM
You don't put </a> behind <a name="wuteva">

pb&j
04-20-2003, 04:27 PM
Originally posted by Shaneo
You don't put </a> behind <a name="wuteva">
yes, you do.
<a name="something"> text or image here </a>
you need to symbolize an ending to the reference otherwise it will think the whole rest of the page afterwards is also part of the anchor. plus it is correct coding.

Shaneo
04-21-2003, 03:54 AM
:eek: I never do and it still works fine for me.. Thx for the tip n e way :D

one12_
04-21-2003, 06:14 AM
ok its still not working for me... this is what i wrote for the html thing and yeh...

<a href="#1121">Now That Were Done</A>

and at the bottom

<A name="1121"></A>

and it still doesnt work... i tried putting the lyric in <A name="codeword">HERE</A>HERE but it didnt work and yeh.. if u want to take a look and help me out please do... http://orangepeel.homestead.com/stuff.html ... thanks so much!

pb&j
04-21-2003, 03:02 PM
there are two things that may be causing your page to reload and stay at the top...

1. you have a reload javascript at the top of your coding.

2. you have _parent as a value in a target property.

it is probably the second thing that is the problem, try taking the TARGET="_parent" part out and see if it goes right.