Click to See Complete Forum and Search --> : Linking question
bigpie
08-14-2005, 12:43 PM
Lets start off with the fact that im a novice at this.lets say you want to link to another webpage not on your site but what you want to link to is in the middle of the linked page.is there a way to tell(through the link)where on the page to go or do you just have to scroll down?i hope this make some sense :confused:
ScaryBinary
08-14-2005, 10:30 PM
It can be easily done if the other webpage has "bookmarked" the part of the page you want to link to by using an anchor.
For example, here's a link to the middle of the HTML specification that defines what an anchor is: The "A" Element (http://www.w3.org/TR/html4/struct/links.html#h-12.2). If you follow the link, you'll note it takes you to the middle of a webpage...you can scroll up or down from there.
The hyperlink actually looks like this: http://www.w3.org/TR/html4/struct/links.html#h-12.2
The "#h-12.2" refers the bookmark I was talking about earlier. This hyperlink tells your browser to look for the "links.html" webpage, and then find the "h-12.2" bookmark in it. The "#" just separates the webpage from the bookmark. You can see how it all works by following the link above and reading about the anchor element.
Having said all that, the problem is that this must already exist in the webpage you want to link to. I don't believe there's any easy way to just link to the middle of some webpage if the bookmark (anchor) doesn't exist in that webpage. You might be able to some tricky things with javascript or something...let us know if you want to go that route and we can figure something out. There are a few people hanging out around here that probably have an idea about how to do it!
Oh - you can determine if the website has the bookmark by going to it and viewing the source. Look for the text in the part of the page you want to link to...if it's bookmarked it will have something like<a name="Section1">Section 1</a> in it.
bigpie
08-15-2005, 09:58 AM
thanks for the quick response scary!i dont see a bookmark tag in the source.im am linking the page.the title of article is Cleveland filmmaker needs your helpAnd here is the link to the page http://www.coolcleveland.com/index.php/Main/BestInOhio
PS i think page is written in pm wiki? :confused:
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.