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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking my menu to another page

Status
Not open for further replies.

pielz

Programmer
Nov 12, 2002
8
US
I have a menu and i want to be able to click on one of the subjects and then on the other page have it go straight to that part instead of the top of the page. How can i get it to start up at that part of the page?
 
Put an anchor on the other page and refer to the anchor in your HREF.

So, in your calling page, the link looks like this:

Code:
<a href=&quot;[URL unfurl="true"]http://www.dikshunerry.com/#Schpadoinkle&quot;>Look[/URL] up Schpadoinkle!</a>

and on your target page, you have

Code:
<h3 id=&quot;Schpadoinkle&quot;>The Historical Ramifications of the Word: Schpadoinkle</h3><p>&quot;Schpadoinkle&quot;, popularized in the epic motion picture &quot;Cannibal: the Musical&quot; was first coined in 1926 to give meaning to &quot;International Schpadoinkle Day&quot; which was, in fact, declared three years earlier.</p>

Easy, huh?

Cheers,
[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
In the target page, add named anchor tags wherever you want your 'sections'.
e.g. <a name=&quot;foobar&quot;></a>

And in the menu, make your links like this:
<a href=&quot;targetpage.htm#foobar&quot;>

Then when you click the link, it will take you directly to the foobar section in the target page. Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Thank you thank you thank you....I just didn't know where to put the linking part. But now i do... And thank you again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top