Status Bar Message

G

Guest

How do I add a note in the bottom left corner (status bar) of my pages above
the Start button in Frontpage? I want to add notes at the bottom left when
visitors to my site and hover their mouse on a link. I am using Frontpage
2003.

Thank you.
 
K

Kevin Spencer

JavaScript:

function setStatus(message)
{
window.status = message;
return true;
}

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
G

Guest

Thank you for your reply.

Is there a way of doing it without coding? Is there anywhere where I can
just type the info for the window status?
 
T

Tom [Pepper] Willett

Nope. Sorry.
--
===
Tom [Pepper] Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/

About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
===
message | Thank you for your reply.
|
| Is there a way of doing it without coding? Is there anywhere where I can
| just type the info for the window status?
|
|
| "Kevin Spencer" wrote:
|
| > JavaScript:
| >
| > function setStatus(message)
| > {
| > window.status = message;
| > return true;
| > }
| >
| > --
| > HTH,
| >
| > Kevin Spencer
| > Microsoft MVP
| > ..Net Developer
| > You can lead a fish to a bicycle,
| > but you can't make it stink.
| >
| > message | > > How do I add a note in the bottom left corner (status bar) of my pages
| > > above
| > > the Start button in Frontpage? I want to add notes at the bottom left
| > > when
| > > visitors to my site and hover their mouse on a link. I am using
Frontpage
| > > 2003.
| > >
| > > Thank you.
| >
| >
| >
 
T

Trevor L.

Tom's reply is absolutely correct.

But, why be scared of coding?
I can tell you from nearly a year's experience of using the web, that coding
is often easier than using menus, etc.

This may not the best way, but a very simple way to do what you want is to
go to the code view and type in this.
<script type ="text/javascript">window.status = 'Message that I want to see
in the status bar'</script>

The amount of extra stuff that you have to type, over and above the message
itself, is not a lot.
You can even cut the above, paste it into the code view and then overtype my
prototype message with your message.

Try it and see.
 
K

Kevin Spencer

Sure. You can type:

function setStatus(message)
{
window.status = message;
return true;
}

Let me tell you something about "coding." You want something to happen. You
want the browser to do something. You're not just giving it a document to
display. You're telling the browser (note that the status bar is not in the
HTML document) to do something, to write a message in its status bar. How do
you tell it to do something? The same way you tell a human to do something.
You give it instructions, just like when you said "I want to add notes at
the bottom..." and I gave you instructions how to do it.

Programming ("coding") is the process of writing instructions to a computer
program, telling it what to do. No big thing. It gets to be a big thing when
you want a big thing. In this case, all you want is for an existing program
(the browser) to put something in its status bar. That's a little thing.

What I gave you is called a function definition. It is like a recipe that
you give to the program. It contains exactly 2 instructions. But once I give
the program the recipe, all I have to do is tell it to execute the recipe -
one instruction. As you're new to "coding" I'll give you a bit more
information about using it. You put it into a script block in the HTML of
your document, like so:

<script type="text/javascript?><!--
function setStatus(message)
{
window.status = message;
return true;
}
// --></script>

When you want to use it, you put an instruction in another script block,
without using a function definition:

<script type="text/javascript?><!--
setStatus("this is the text I want to display");
// --></script>

Since this is not a function definition, it is an instruction to *use* a
function definition. It tells the browser to use the "setStatus" function,
and that that text to put in the status bar is "this is the text I want to
display".

Pretty simple, eh?

You will want to know this. I know, I know, you started making web pages
because you thought it would be just like making a Word document, and
FrontPage would do everything for you. Well, that's true, sort of. But even
Word has a macro language (VBA) for doing things that require more than just
formatting, like typing the same block of text when you want it to, or doing
all kinds of other things that are things to do, not just text to format and
display. JavaScript is like a macro language for web pages.

Here's the thing: Yes, FrontPage can do a *lot* for you, and yes, you can
create web pages without coding, as long as you don't want to do anything
that requires coding to do. It will even write *some* JavaScript for you,
but not a lot. Now, almost everyone like yourself who gets FrontPage and
thinks they will never need to learn any HTML or JavaScript eventually wants
something that doesn't come pre-packaged with the program. That is the way
we humans are. We're creative beings, and we have our own ideas about what
we want. At that point, well, you're just going to have to learn a little.
And this is a perfect thing for you to learn. It's simple, and it introduces
you to a few concepts.

In another year or 2, you'll probably be jumping through all kinds of
JavaScript and DHTML loops, once you've gotten over the initial paranoia.
Think of it as freedom. With a little learning, you can do anything you want
with a web page. Without it, well, you know what your limitations are right
now. You just ran into one of them.

Remember, you are only as limited as you allow yourself to be. How much
freedom do you want? Are you willing to work for it?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
T

Trevor L.

Kevin Spencer wrote (amongst other things):
Remember, you are only as limited as you allow yourself to be. How
much freedom do you want? Are you willing to work for it?

So, "Inquiring Minds", I would encourage you to keep inquiring.

A year ago, I "knew nothing" as a (in)famous TV character used to keep
saying. Now, when I want to do something different, I think "what javascript
can I write to do that".

Sure, I may look to see if someone else has done it and use their code. But
*not* before I understand what it is doing. It usually won't end up as the
same code after I have modified it to my requirements.

Now, I have even received compliments from such learned persons as Kevin to
say I am on the right track.

Happy learning.
Trevor L.
Website: http://tandcl.homemail.com.au
 

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