In FrontPage 2002, how do I add a floating "back" buttons?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a page that is very long and I want to add a floating back button so
the viewer does not have to go down to the bottom or up to the top to change
pages. If you know of a book that I can reference it would be appreciated.
Thank you.
 
I am having trouble adding a hyperlink to the floating bar - I am trying to
add a hyperlink just as I would and the link name is being added as content
in the bar - what am I doing wrong? And am I able to move the bar - from the
left to the right of the page? Thank you.
 
Hi sechlc

Just to say I've seen your reply. Have to go out now (13:30 AEST). I'll have
a look later
 
sechlc,

Hmm!

This could be a bit beyond me, as the script uses functions I am not
familiar with.

But the answer to the second question "am I able to move the bar - from the
left to the right of the page?" is easy.

There are these global variables
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed,
it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

So to position further to the right, set startX to a larger number. I am not
sure how much larger. The bar appears to be 620px wide, so on an 800px wide
screen, 180 would be the maximum.

According to the description, you add this to the body:
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif"
border="0" /></a>
Your content here.
</div>


So I would add the hyperlink (to youraddress.com.au/your.html) in place of
"Your content here."
E.G.
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif"
border="0" /></a>
<a href="youraddress.com.au/your.html" >Your text</a>
</div>

Doesn't that work?

As this is not my script, I am just guessing. I will try to test it myself.
But by then, you may already have found the answer.
 
sechlc,

Just to confirm that this code works fine for me
<div id="topbar">
<a href="" onClick="closebar(); return false">
<img src="close.gif"> border="0" /></a>
<a href="http://tandcl.homemail.com.au" >Home Page</a>
</div>

That is, clicking on "Home Page" takes me to my home page on the web.

Of course, to complete the picture you need a file named close.gif on your
root directory. If you haven't got one, you can get mine:
http://tandcl.homemail.com.au/images/display/close.gif. It may not be the
best, but it is a reasonable image.
 
Thank you for all of your help.

Trevor L. said:
sechlc,

Just to confirm that this code works fine for me
<div id="topbar">
<a href="" onClick="closebar(); return false">
<img src="close.gif"> border="0" /></a>
<a href="http://tandcl.homemail.com.au" >Home Page</a>
</div>

That is, clicking on "Home Page" takes me to my home page on the web.

Of course, to complete the picture you need a file named close.gif on your
root directory. If you haven't got one, you can get mine:
http://tandcl.homemail.com.au/images/display/close.gif. It may not be the
best, but it is a reasonable image.
 
Back
Top