Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2007, 11:46 AM   #1 (permalink)
Contributing Member
 
kade119's Avatar
 
Join Date: 03-20-07
Posts: 119
iTrader: 0 / 0%
Latest Blog:
None

kade119 is liked by many
how to link to a certain page and position on a page

i know how to link pages, but how to set it so it drops down to a certain <p> or <h1>?
kade119 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-29-2007, 12:41 PM   #2 (permalink)
Contributing Member
 
Bearsong's Avatar
 
Join Date: 03-23-07
Location: Maryland
Posts: 74
iTrader: 0 / 0%
Latest Blog:
None

Bearsong is a jewel in the roughBearsong is a jewel in the roughBearsong is a jewel in the roughBearsong is a jewel in the roughBearsong is a jewel in the roughBearsong is a jewel in the rough
Forgive what may be a stupid question as a reply to a good question... Are you speaking about anchor links/bookmarks?
Bearsong is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2007, 01:16 PM   #3 (permalink)
Inactive
 
Join Date: 01-23-07
Location: Netherworld, under Buenos Aires.
Posts: 169
iTrader: 0 / 0%
Hades is liked by somebodyHades is liked by somebodyHades is liked by somebodyHades is liked by somebody
Send a message via MSN to Hades Send a message via Yahoo to Hades
you have to add an empty link with the "name" attribute on the document...

<p>
<a name="thisposition"></a>
....content...
</p>

then your link can be as follows:
http://mysite.com/mypage.html#thisposition
Hades is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2007, 01:33 PM   #4 (permalink)
Contributing Member
 
kade119's Avatar
 
Join Date: 03-20-07
Posts: 119
iTrader: 0 / 0%
Latest Blog:
None

kade119 is liked by many
... yeah.. sorry i had bypassed the details


so if i want to link to a page on dogs...


<a href="dogs.html" title="breeds of dogs" a name="labs">dog breeding</a>

so that would go to the header "labs"?

Last edited by kade119 : 03-29-2007 at 01:36 PM.
kade119 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2007, 01:37 PM   #5 (permalink)
Contributing Member
 
kade119's Avatar
 
Join Date: 03-20-07
Posts: 119
iTrader: 0 / 0%
Latest Blog:
None

kade119 is liked by many
Give the <p> or <h1> an ID and link to it. For example, if you have a file named index.html with a <p> that you want to jump to:

Code How do I post code blocks?

<p id="foo">


thanks =)
kade119 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-31-2007, 04:31 PM   #6 (permalink)
Contributing Member
 
labrocca's Avatar
 
Join Date: 01-24-06
Location: Las Vegas
Posts: 271
iTrader: 1 / 100%
Latest Blog:
None

labrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nice
Send a message via AIM to labrocca Send a message via Skype™ to labrocca
Quote:
Originally Posted by kade119 View Post
... yeah.. sorry i had bypassed the details


so if i want to link to a page on dogs...


<a href="dogs.html" title="breeds of dogs" a name="labs">dog breeding</a>

so that would go to the header "labs"?

<a href="dogs.html#labs" title="breeds of dogs">dog breeding</a>

That's what you do...make sure to have the <a name="labs" /> inside the dogs.html page.
__________________
Political Debate- Join this site to have indepth politics discussion.
Pron Proxy - Free anonymous proxy browsing
labrocca is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-31-2007, 07:59 PM   #7 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,003
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Just to aid future forum searchers, these are called anchor links or anchored links.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is page rank and how does it affect your search engine position? gregdavidson SEO Forum 6 09-24-2007 04:28 PM
What is the difference between a home page and an inside page link? joew SEO Forum 6 07-11-2006 03:11 PM
How can I get my site from position nr. 50 in "MSN Search" to 1st page again? Michel Z. SEO Forum 17 04-26-2006 07:05 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:50 AM.
© Copyright 2008 V7 Inc