View Full Version : how I add anchor in dreamweaver?
7thkevin
01-06-04, 11:49 AM
I think its an anchor but its where I have a button on the sidebar and if you click it it brings the main page to a lower part of it like a diffrent section just lower or higher.. you know what i mean?
mountainman
01-06-04, 11:51 AM
There's a little icon of an anchor up on the top toolbar. Just put the cursor where you want the anchor and click it. It'll ask you for a name. Type whatever you want the anchor to be known as and you're good to go.
Now, to make some text or a graphic link to that anchor, just make it a hyperlink. But, instead of linking to another page, just make a link to the anchor, such as "#photos". (That would take you to an anchor called "photos". Notice the "#" in the link, but NOT in the actual anchor name.)
If you switch to the html screen in dreamweaver you can add them as such
<a name="whatever"></a>
This would go in your html right above or so where you want the click to direct the user.
the link would be
<a href="#whatever"></a>
7thkevin
01-07-04, 09:25 AM
Originally posted by Joe
If you switch to the html screen in dreamweaver you can add them as such
<a name="whatever"></a>
This would go in your html right above or so where you want the click to direct the user.
the link would be
<a href="#whatever"></a>
hmm I did that <a href="#one"></a> and the target is mianframe
but i preview and it says can not find.
7thkevin
01-08-04, 10:11 AM
BUMP
mountainman
01-08-04, 01:29 PM
Not sure if you can put the link on the outside frame and the actual anchor on the inside page.
I hate frames.
Good luck.
7thkevin
01-08-04, 05:20 PM
Originally posted by mountainman
Not sure if you can put the link on the outside frame and the actual anchor on the inside page.
I hate frames.
Good luck.
yea I found that out cant be frames It works on a plan page :(
I was hoping to have it on the side.
mountainman
01-09-04, 09:56 AM
I don't really know how frames work, but you CAN add a web address before the "#link" part. For instance, if your link is on the "index.htm" page, and your anchor is on the "hobbies.htm" page, just type this in the link: "http://www.mysite.com/hobbies.htm#link"
Does that make sense ? If the anchor isn't on the same page as the link, just add the URL before the #text.
Let me know.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.