MaximumGoat

Distinguished
Jul 22, 2003
115
0
18,680
hi,

i have been teaching myself to use dreamweaver mx over the last few days, but i cant work out at all how to make a link that simply links to a different position on the same page, any advice would be great

thanks
 

CompSci

Distinguished
Feb 6, 2001
411
0
18,780
Example, an author might create a table of contents whose entries link to header elements H2, H3, etc., in the same document. Using the A element to create destination anchors, we would write:

<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2><A name="section1">Introduction</A></H2>
...section 1...
<H2><A name="section2">Some background</A></H2>
...section 2...
<H3><A name="section2.1">On a more personal note</A></H3>
...section 2.1...

To achieve the same effect by making the header elements themselves the anchors:

<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2 id="section1">Introduction</H2>
...section 1...
<H2 id="section2">Some background</H2>
...section 2...
<H3 id="section2.1">On a more personal note</H3>
...section 2.1...

*** Google "HTML links on the same page" for more examples....
 

xyz

Distinguished
Mar 5, 2002
297
0
18,780
In Dreamweaver, it's pretty much simple.
Type the text which you want to make a link.
Select the text.
In the Properties windows, type the URL corresponding to that text in the "Link" field. NOTE: If Properties windows doesn't appear on the screen, Press CTRL+F3.
In the "Target" field, select 'Parent'.
That's all.
___________________________________________________________
<font color=blue>Mubashar</font color=blue>

<b><font color=red><i>"All delays are dangerous in war."</b></font color=red></i>