HighDots Forums  

Mid-page hyperlink

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Mid-page hyperlink in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dddsss
 
Posts: n/a

Default Mid-page hyperlink - 07-08-2004 , 11:58 AM






Hi,
I want to define a hyperlink from one page to sub-heading half way down
another page.

Normally when defining a link, in Properties I would enter a page name in the
Link field.

How can I specify the sub-heading in the Link definition. Do I have to do this
by writing HTML code or it is possible thru the dreamweaver application?

Thanks,
rob



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Mid-page hyperlink - 07-08-2004 , 12:03 PM






Press F1 and read about named anchors.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"dddsss" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi,
I want to define a hyperlink from one page to sub-heading half way down
another page.

Normally when defining a link, in Properties I would enter a page name in
the
Link field.

How can I specify the sub-heading in the Link definition. Do I have to do
this
by writing HTML code or it is possible thru the dreamweaver application?

Thanks,
rob





Reply With Quote
  #3  
Old   
theSquares
 
Posts: n/a

Default Re: Mid-page hyperlink - 07-08-2004 , 12:19 PM



You have to insert an anchor in the 'other page', on the point you want to link
to, and then give it a name (ex. anchor) - you can insert anchors by clicking
the anchor element from the submenu invisibles, or choose Insert > Invisible
Tags > Named Anchor. You now have an anchor in that page, and it's time to go
to the page which contains the link.
In this page, you create a link to that specific mid-piece by placing the
following:

UrlToPage.htm#anchor

- Bart


Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Mid-page hyperlink - 07-08-2004 , 12:35 PM



.oO(dddsss)

Quote:
I want to define a hyperlink from one page to sub-heading half way down
another page.
It's called a named anchor. The link contains the address of the target
page and a fragment identifier, separated with a #, e.g.

www.example.org/foo.html#bar

The target of this link is a named anchor called 'bar' in the page
foo.html. There are two ways to define such a named anchor:

* Using the a-element with a name-attribute (the anchor shouldn't be
empty):

<a name="bar">...</a>

* Using any other element with an id-attribute:

<h2 id="bar">...</h2>

HTH
Micha


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.