Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

anchor tags


MCousin76

Recommended Posts

Does anyone know how to place an anchor tag in a page? I don't think i'm doing it right.

 

===============

This is how i'm doing it

===============

I have the alphabet listed at the top of the page.

 

A B C D E F G.....

 

When someone clicks on a letter it is suppose to bring them down to that letter (this is for a glossary)

 

======================

LINK AT THE TOP OF THE PAGE:

======================

<a href="#A" class="black2"><b>A</b></a>

 

===============================

THE ANCHOR LINK SOMEWHERE IN THE PAGE

===============================

<a name="A" id="A">A</a>

Link to comment
Share on other sites

Your HTML syntax looks correct.

 

If you're tryig this within your osC PHP pages, you should read this post:

 

Click Me

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Your HTML syntax looks correct.

 

If you're tryig this within your osC PHP pages, you should read this post:

 

Click Me

 

I changed the code to (below).... but it's still not going to the bottom link? Do you have any suggestions???

 

=======

TOP LINK

=======

<a href="' . tep_href_link(FILENAME_GLOSSARY, '#A') . '">A</a>

 

==========

BOTTOM LINK

==========

<a name="A" id="A">A</a>

Link to comment
Share on other sites

The HTML looks fine to me as well - when you put the mouse button over the link in the web browser, does it look ok?

 

Is the page large enough so that there are scrollbars? If not, it won't take them down ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...