Yo,
You know on FAQ pages when you click on the topic link it brings you down so it shows that part of the page...well how do you do that?
Is this html or PHP,
I just want some easy way of adding it to my site..not making a new page that is for FAQ..something just to add directly into the site.
Snoop
They are called internal links and are HTML. Exactly the same as normal links but instead you put "#identifier" as the HREF which is a name of an element somewhere on the page.
For example:
| Code: |
| <a href=#First>Jump To First Paragraph<a/> |
^^ The link
| Code: |
| <p name="First">This is the first paragraph. Lots of text and stuff.</p> |
^^ The place the link would jump to.
You can jump to internal links from other pages as well. So putting the following on another page would also work:
| Code: |
| <a href=http://www.mydomain.com/page2.html#First>First Paragraph on Page 2<a/> |
You are talking about an internal link. It's accomplished like this:
| Code: |
<a href="#q1">Question 1: Why....</a>
//more questions here
<hr />
<p id="q1">Answer 1: blah blah.</p> |
So give your target an id, then refer to it as a normal link, using # and the id.
Good luck!
Thanks alot guys..that really helped.
I'll have to try that on my pages..very helpful
Snoop
k..i got the "id" one to work...
But it doesn't seem to show at the top of the page like others
is that because you have stuff underneith it to do that?..i am thinking that.
But thanks anyway, that is cool
Snoop
if you mean that if you click the link then the answer won't move to the top of the page?
If so, is there enough space between the question and the answer?
and is the page big enough that it actually can move the answer to the top of the page?
try adding a lot of new lines "<br />" between the question and the answer (or anywhere) or just fill it up with anything just to make the page big enough that it lets the answer move to the top of the page. and don't make the answer too close to the top, put it somewhere in the middle.