Hyperlink to a different part of a page?

M

Marnles

I would like to make a "FAQ" page, where someone would click on a question
higher up on the page, and be linked to a lower part of the page where the
questions are answered. Is it possible to do this in Publisher, and if so,
how? Thanks a bunch!
 
D

DavidF

You can do this several ways using the insert html code fragment tool. If
your questions are fairly short, you can include them in the code snippet
you would insert into your page. Here is an example:

<p><font face="Arial" size="2">


<LI><A HREF="#READHERE1">This is my first question?</A><br>
<LI><A HREF="#READHERE2">And what about this question?</A><br>

If you copy and paste the above snippet into a code fragment box (use Ctrl +
V to paste), you will have a bulleted list of two questions. If you don't
want the bullet, then remove the <LI>. Also, this code snippet is setup for
Arial font, html size 2 which is about a font size of 10. Try 3 for a font
size of 12.

Alternatively, just write your question in a text box, and right below it,
or to the side, insert this snippet:

<A HREF="#READHERE1">Click for answer</A>

Change the text to whatever you want it to say. You can not overlap a code
fragment box with a text box, and just size your code fragment box big
enough to accommodate your text.

Then, go down the page to where your answer is, and I would suggest each
answer be in a separate text box, and insert this anchor right above the
text box:

<A NAME="READHERE1"></A>

When you click on the "click for answer" you will automatically be taken
down to your answer, with the answer displaying just below the top of the
browser window. If you must put all the answers in one text box, then insert
the anchor to the left or right of the answer outside the text box. It will
not be visible when you preview your site.

Then I would also insert another code snippet, either after each answer if
you used separate text boxes, or perhaps to the left side of the answer:

<p><font face="Arial" size="2">
<A HREF="#TOP">Top of Page >></A>

Once again I have it set up for arial font, and 10 point font size. When you
do a web page preview, you will see the text "Top of Page >>" displayed, and
if you click it, it will take you back to the top. You can vary the text as
you see fit...I have tried just "top" but, felt it might not be clear to the
viewer.

Good luck...

DavidF
 
M

Marnles

I have to be honest with you and say that upon first reading this reply, I
literally laughed out loud and said, "yeah, right"...but then I paid close
attention to what you said, tried it, and it worked!! Unfortunately my FAQ
page has too much information to do it this way (I tried it, but the only way
it would all fit would be to make my font too small). I will absolutely be
saving your response to use another time though. Extremely helpful!!!!!!!!
Thanks so much for your time David!!!!
 
D

DavidF

Thanks for your feedback. It is relatively easy to build a basic simple
website with Publisher, but when you want to do something like this, it can
get a bit more complicated, and my answers can get a bit too thorough...or
perhaps laughable sometimes ;-). Heck, most people think its laughable to
use Publisher to build a website, so I am not offended. Here is another
reference you might read: Bookmarks aka Hyperlinking to a place on a page:
http://msmvps.com/blogs/dbartosik/archive/2006/01/09/81265.aspx

Now let me complicate your life a bit more. If you are using Pub 2000 or
2003, then you can make the page length of a website any length in the
Publisher file, and when you produce the HTML, Publisher truncates the
length to just below the last design element on the page. This means that
when I ran across the same issue of having a bit too much content for the
default page length, and I didn't want to continue it onto a second page, I
just lengthened the page.

You have a couple choices here. You can lengthen each page in your Publisher
document or you can pull out the FAQ page and create it in a second
Publisher document, upload that HTML content to a subfolder on your site and
link to it from your main site. Personally I prefer the second approach, but
the first is easiest.

Assuming that you are using Pub 2003 go to your first page of your Publisher
document. Then Edit > Select All. Then Arrange > Group All. Do this to each
page in your document. Then File > Page Setup > Layout Tab and choose
Custom. Leave the width alone, but type in a new length that is long enough
for your content, plus some in case you want to add content later. Don't
forget that it doesn't matter how long you make the Publisher page, because
when you Publish to the Web and produce your HTML, Publisher will produce
variable length pages...it will truncate the page length after the last
design element.

Now, when you do this you will notice that all your content has suddenly
been moved down from the top of each page. That is why I had you group the
all the content of each page before you lengthened the page. Scroll down to
the content and left click one of the design elements and drag the grouped
content back up to the top of the page. If you hold the shift key down while
you are dragging, all the content will be dragged in a straight line, which
makes it easy to just drag and align just to the top. Then ungroup the
content. Do this to each page and you are ready to go.

Once again, probably more than you wanted to know, but....

If you want instructions on how to pull the FAQ page out and create a second
Pub file, let me know.

DavidF
 
M

Marnles

David,
Regarding your last response, in order to lengthen the page (I think I'll go
with this choice), do I need to start at the first page of my document and
group and lengthen EVERY page, or can I simply group and lengthen the one
page that I want to do my FAQ on? Please let me know at your earliest
convenience. Thanks again!
 
M

Marnles

David,
I also wanted to add, that when I look at my website online, the pages do
not actually truncate as you indicated. I can continue to scroll down way
past what is written or inserted last on the page, so I would prefer not to
make all the pages longer if possible, being that they're too long already
(like this sentence)! (I know I'm a pain, but if it makes you feel any
better, I feel like I'm really learning something!!!!!!!)

Thanks!!!
 
D

DavidF

As I said, Publisher 2000 and 2003 will truncate the pages after the last
design element. Sounds like you are using Pub 2002, which has fixed length
pages. So, no, you can't lengthen just one page in a Publisher
document...its all or nothing. That means your other option is to produce
your FAQ page in a second Publisher document.

The simple answer is to create the FAQ page at what ever length works for
you, and then upload the html output to a subfolder on your website, and
link to it from your main site. Reference" Building a web site with multiple
Publisher web publication files:
http://msmvps.com/blogs/dbartosik/archive/2006/01/16/81264.aspx

DavidF
 
M

Marnles

Ok, thanks regarding the info about my version of Publisher - and yes, it is
2002.

I clicked the link you suggested and I'm sad and sorry to say it's just way
over my head. I appreciate your time very much.

Marni
 
D

DavidF

Here is how I would do it.

Open Publisher and create a new single page webpage, and save it as FAQ.pub.

Create your FAQ page.

I don't have Pub 2002, but I think you "export as a web page" to produce
your HTML output, and save as index.htm.

Create a subfolder on your website called "FAQ" and upload your new HTML
files from your FAQ Pub doc to that folder.

Create a link from a page on your main website, to that folder.
http://yoursite.com/FAQ/index.htm and add a link to your FAQ page back to
your main site.

DavidF
 
G

Gizmette

OK, I had the same requirement and successfully set up my FAQ sheet.
However, I'm not crazy about the repetitive "Click for Answer" that appears
after each question. I'd like my visitors to be able to click on each
question and be bookmared or hyperlinked to its respective answer below.

Also, I'd like an icon that, once they are at their answer, they can click
to be returned to the top? Suggestions?

Thanks!
 
W

Warden

Excellent stuff! Worked a dream, except that my "Top of Page" message
appears too low - it's just below the screen when you go to the question
concerned - even though there's plenty of white space above it. In fact it
appears just above the answer below. I've tried moving the html code fragment
up into the text box but it doesn't change anything in web view.

Any suggestions?
 
D

DavidF

I may not be understanding your question, but the Top and Bottom tags are
built-in to your webpage. You don't insert a special anchor at the top of
the page in order to get the link to Top to work. If you insert the code
snippet:
<A HREF="#TOP">Top of Page >></A> anywhere on the page, do a webpage
preview, and click the link, you should go automatically to the top. If that
is not what is happening please explain more or provide the URL of the page
where you are having the problems.

DavidF
 
W

Warden

Sorry, I didn't explain very well. The hyperlink works properly, i.e. when
you click on "Top of Page", the top of the page is displayed. The only
problem is that when the longest article on the page is displayed, you can't
see the "Top of Page" hyperlink below it, even though there's plenty of space
for it on the screen. To find it you have to scroll down. I would prefer the
hyperlink to sit just below the bottom of the article, otherwise people won't
know it's there.
 
D

DavidF

I think I understand what you are saying, but I am not sure of the solution.
Is your "longest article" in one text box, or do you have all your
"articles" in one text box? Though you can sometimes overlap a code fragment
box with a text box in Pub 2003, you can't do that in Pub 2000. If you are
using one long text box, then try breaking out the articles into separate
text boxes, and placing the top of page fragment right below it. Also, you
could try putting the code fragments to the side of the text box. Sometimes
things get shifted around on the page when Pub converts everything to HTML,
and you just have to try different placements and combinations until it
works. Also, don't forget to run the design checker tool, to see if perhaps
there is something else happening.

Sorry I can't give you a more definitive answer.

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top