Anchors??

They have: 5,633 posts

Joined: Jan 1970

I have never used them because i have never needed them, but now i have taken over a project that does use them and i cant get them to work.

please tell me what the problem is with http://www.ycac.or.jp/adults.html
its not pr0n, only the odd link (which you can find between the flags about half way down) actually works, and i dont know why!!

------------------
Join The Rest Of The Webmasters On The Net!!
Are You Chicken?
http://www.DoubleOK.com
http://www.Webmaster-Club.com

They have: 14 posts

Joined: May 2000

A lot of times Front Page puts %20 into the code when it's not necessary. Try taking it out.
Also, when using A name the code moves the viewer to the word that is specified, i.e. Clicking on Playgroup took me to Playgroup, but I missed the top part of the info I was to read.
EXAMPLE:
<a href="#playgroup">Playgroup
<a href="#child%20care">Child Care

You may also want to change the A name code -- maybe just use 'adu' instead of the 3 word phrases that are currently used. For the next phrase that begins 'adult' add another letter.

Also, this piece of code:
<a href="kids.html#summer camps"><br>
has no associated link to click on.

[This message has been edited by Star (edited 20 June 2000).]

They have: 5,633 posts

Joined: Jan 1970

The webdesigner before me used frontpage, and now when i take it over im using dreamweaver, all the extra comments that frontpage put in really annoyed me becaus ei had to cut and paste text and links when redoing the site

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Don't use spaces.

An internal anchor (like a hyperlink) looks like this:

<a href="#whatever"></a>

and the actual place it goes to looks like this:

<a name="whatever"></a>

So you need to just make sure there is a name for every href...

When you call to an anchor on another page, it's like this:

<a href="page.html#whatever"></a>

But on that page.html, the name is still just

<a name="whatever"></a>

Just avoid spaces and capitals, and make sure you have named all the places you want to get to.
www.htmlvalidator.com will be of help for this, as it will track the errors and let you fix them right away. I find it invaluable.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

I agree with Suzanne. In fact, I tend to use acronyms (The Learning Curve == tlc, etc)
It makes everything easier to find & type.

Vinny

------------------
my site:GrassBlade: cut&paste javascript
moderator at:The Javascript Place
Javascript City

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.