Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links to information on same page

Status
Not open for further replies.

ivalum21

MIS
Jul 14, 2004
63
US
This should be pretty simple, I'm just having a rough day today. I want to display hyperlinks at the top of my page, and when one of them is clicked, it will jump down to the correct info down the same page.

How do I do this??
 
Code:
<a href="#section1" ...>Click me for section 1!</a>

...
...
...

<a name="section1">This is section one!</a>

-Tek
 
This is what I got so far. I'm looping my category names into a table and trying to link them to sections on the same page below the table of categories.

What am I doing wrong?

Code:
<cfoutput>
<cfset I = 2>
<cfset columns = 3>

<table align="center" cellspacing="5" cellpadding="5" border="0">

<cfloop query="GetCat">
<cfif i MOD columns EQ 1>
  <tr>
</cfif>
<td><a href="Section1?catID=#FAQCatID#">#FAQCategoryName#</a></td>
<cfif i MOD columns EQ 0>
  </tr>
</cfif>
<cfset i = i + 1>
</cfloop>

<cfif i MOD columns NEQ 1>
  </tr>
</cfif>
</cfoutput>
</table>

<a name="Section1">This is section 1!!</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top