java script

B

Bonnie E. Hale

I have hired someone to redesign my home page.

I deleted the html in a new page and copy and pasted the html into the
editor but the page does not work.

Like most designers they have little or knowledge of Front Page and HATE it

I am at kindergarten level with html - that is why I use front page.

It seems that the code has java script.

How do I find out if I have java script (even though I have no clue what it
is) ?

How do I get that to work in front page 2003?

Would some one be willing to look at the code and tell me what is wrong?

Bonnie
 
D

David Berry

First, you need to switch to Code View, and copy and paste all the code in
there. Don't do it in design view. As for JavaScript, that's client side
scripting that anyone can use. Just paste the code into Code View in
FrontPage.
 
B

Bonnie E. Hale

That is what I did. I deleted all the code from the code side and copied
and pasted the code from note pad that she sent me.

But it does not work right. And since he is not familiar with front page,
other than hate it, she can not tell me why the page is not showing up
right.

That is why I asked if someone would be willing to look at the code and tell
me what is wrong with it.
 
T

Trevor L.

Bonnie said:
How do I find out if I have java script (even though I have no clue
what it is) ?

If it uses Javascript, you will find a set of tags
<script type="text/javascript">
</script>

This wording may vary a bit e.g.
<script language="javascript">, or similar. I don't use this at all, so I
have (deliberately ??) forgotten its format

You may see src="xxx.js" inside the <script> tag. This is a reference to an
external file holding the JS.

The tags may be in the <head> section or in the <body> section (when looking
at the Code or HTML view)

Anyway look for the tag <script .........>

What is it?
A scripting language that extends the capabilities of HTML.
An example is a button that you can click to go somewhere else or perform
some action

And any problems, post back here, preferably with the URL of the website (as
in my signature)
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
T

Trevor L.

Bonnie said:
That is what I did. I deleted all the code from the code side and
copied and pasted the code from note pad that she sent me.

But it does not work right. And since he is not familiar with front
page, other than hate it, she can not tell me why the page is not
showing up right.

That is why I asked if someone would be willing to look at the code
and tell me what is wrong with it.

Yep, please post it here. I will have a look.

Maybe not straight away , I have to go shopping now (1030 am AEDST)
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
B

Bonnie E. Hale

This is just a mock up she did for me to see how it looks. She is adding a
nav bar for me but she used HER nav bar for me to see what it would look
like.

I left off the header stuff. That part is correct but below is the html
that does now work right

<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px
Arial; color: #000000; cursor: hand; z-index:100}
#MainTable A:hover {color: #383838;}
</style>

<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=0 //specify whether menu should stay static (works only in
IE4+)
var menucolor="#91DBFF" //specify menu color
var submenuwidth=150 //specify sub menus' width

</script>
</head>

<body>

<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script><br><br><br>


Bonnie
www.bonniesplants.com


Trevor L. said:
Bonnie said:
How do I find out if I have java script (even though I have no clue
what it is) ?

If it uses Javascript, you will find a set of tags
<script type="text/javascript">
</script>

This wording may vary a bit e.g.
<script language="javascript">, or similar. I don't use this at all, so I
have (deliberately ??) forgotten its format

You may see src="xxx.js" inside the <script> tag. This is a reference to
an external file holding the JS.

The tags may be in the <head> section or in the <body> section (when
looking at the Code or HTML view)

Anyway look for the tag <script .........>

What is it?
A scripting language that extends the capabilities of HTML.
An example is a button that you can click to go somewhere else or perform
some action

And any problems, post back here, preferably with the URL of the website
(as in my signature)
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
D

David Berry

Your code references 2 external JavaScript files:

<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>

You need these 2 files (menu.js and menucontext.js) for the code to work
correctly. If you have them, import them into the same folder that the page
is in. Now try it.


Bonnie E. Hale said:
This is just a mock up she did for me to see how it looks. She is adding
a nav bar for me but she used HER nav bar for me to see what it would look
like.

I left off the header stuff. That part is correct but below is the html
that does now work right

<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px
Arial; color: #000000; cursor: hand; z-index:100}
#MainTable A:hover {color: #383838;}
</style>

<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=0 //specify whether menu should stay static (works only in
IE4+)
var menucolor="#91DBFF" //specify menu color
var submenuwidth=150 //specify sub menus' width

</script>
</head>

<body>

<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script><br><br><br>


Bonnie
www.bonniesplants.com


Trevor L. said:
Bonnie said:
How do I find out if I have java script (even though I have no clue
what it is) ?

If it uses Javascript, you will find a set of tags
<script type="text/javascript">
</script>

This wording may vary a bit e.g.
<script language="javascript">, or similar. I don't use this at all, so I
have (deliberately ??) forgotten its format

You may see src="xxx.js" inside the <script> tag. This is a reference to
an external file holding the JS.

The tags may be in the <head> section or in the <body> section (when
looking at the Code or HTML view)

Anyway look for the tag <script .........>

What is it?
A scripting language that extends the capabilities of HTML.
An example is a button that you can click to go somewhere else or perform
some action

And any problems, post back here, preferably with the URL of the website
(as in my signature)
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
T

Trevor L.

Bonnie,
Thanks for this code.
Yes, it does use Javascript.

You wrote "below is the html that does now work right", so if it does work
right, is there still a problem?

Anyway, I'll add some comments to see if I can help
This is just a mock up she did for me to see how it looks. She is
adding a nav bar for me but she used HER nav bar for me to see what
it would look like.

I left off the header stuff. That part is correct but below is the
html that does now work right

<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold
12px Arial; color: #000000; cursor: hand; z-index:100}
#MainTable A:hover {color: #383838;}
</style>

This defines some styles in CSS (Cascading Style Sheets)
Styles starting with . (e.g. .clsMenuItemIE) are used as classes inside HTML
tags, E.G. <p class="clsMenuItemIE">
And styles starting with # (e.g. #MainTable) are used as ids inside HTML
<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=0 //specify whether menu should stay static (works
only in IE4+)
var menucolor="#91DBFF" //specify menu color
var submenuwidth=150 //specify sub menus' width

</script>

This is Javascript code which defines 3 variables. (Just ignore any line or
part of a line with // on it - these are comments)
</head>

<body>

<script language="JavaScript" src="menu.js"></script>

This calls more Javascript from an external file "menu.js" (on the same
folder as the HTML file)
<script language="JavaScript" src="menucontext.js"></script>

This calls more Javascript from an external file "menucontext.js"
<script language="JavaScript">
showToolbar();
</script>

This calls a function, which must be defined somewhere, possibly on one of
the external files.
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script><br><br><br>

This defines a Javascript function and then executes it.
I can't quite explain what it does. It is something like:
Set the position of the element with id "MainTable" to the position of the
cursor; repeat this 5 times a second
Why, I haven't a clue

Anyway, post back to say what does and doesn't work and what your queries
are.

Of course, if you are paying someone to do it, she should answer your
questions. To just say "I hate FrontPage" doesn't really help at all.
FrontPage is just one way of generating HTML, and it is an editor in which
you can add CSS and/or Javascript (to mention two) which will complement
your HTML.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
D

David Berry

My guess (see my reply) is that she's missing the 2 included JS files or the
path to where they are is different than what the tag says. The code has
them in the same folder as the page.


Trevor L. said:
Bonnie,
Thanks for this code.
Yes, it does use Javascript.

You wrote "below is the html that does now work right", so if it does work
right, is there still a problem?

Anyway, I'll add some comments to see if I can help
This is just a mock up she did for me to see how it looks. She is
adding a nav bar for me but she used HER nav bar for me to see what
it would look like.

I left off the header stuff. That part is correct but below is the
html that does now work right

<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold
12px Arial; color: #000000; cursor: hand; z-index:100}
#MainTable A:hover {color: #383838;}
</style>

This defines some styles in CSS (Cascading Style Sheets)
Styles starting with . (e.g. .clsMenuItemIE) are used as classes inside
HTML tags, E.G. <p class="clsMenuItemIE">
And styles starting with # (e.g. #MainTable) are used as ids inside HTML
<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=0 //specify whether menu should stay static (works
only in IE4+)
var menucolor="#91DBFF" //specify menu color
var submenuwidth=150 //specify sub menus' width

</script>

This is Javascript code which defines 3 variables. (Just ignore any line
or part of a line with // on it - these are comments)
</head>

<body>

<script language="JavaScript" src="menu.js"></script>

This calls more Javascript from an external file "menu.js" (on the same
folder as the HTML file)
<script language="JavaScript" src="menucontext.js"></script>

This calls more Javascript from an external file "menucontext.js"
<script language="JavaScript">
showToolbar();
</script>

This calls a function, which must be defined somewhere, possibly on one of
the external files.
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script><br><br><br>

This defines a Javascript function and then executes it.
I can't quite explain what it does. It is something like:
Set the position of the element with id "MainTable" to the position of the
cursor; repeat this 5 times a second
Why, I haven't a clue

Anyway, post back to say what does and doesn't work and what your queries
are.

Of course, if you are paying someone to do it, she should answer your
questions. To just say "I hate FrontPage" doesn't really help at all.
FrontPage is just one way of generating HTML, and it is an editor in which
you can add CSS and/or Javascript (to mention two) which will complement
your HTML.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
T

Trevor L.

David said:
My guess (see my reply) is that she's missing the 2 included JS files
or the path to where they are is different than what the tag says. The
code has them in the same folder as the page.

Yeah, I thought about that.

But she wrote "below is the html that does now work right"
I wonder whether it was a typo and should read "below is the html that does
not work right"

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
M

Murray

If the person you hired can only respond "I hate FP" then you hired the
wrong person. The answer to this is something a professional would know how
to find, because they would realize that FP is just an HTML authoring
system, and it writes the same HTML that other systems do. What they gave
you is just HTML and javascript, and it should make no different what tool
is used to a) create it, or b) edit it.

--
Murray
--------------
MVP FrontPage


David Berry said:
Your code references 2 external JavaScript files:

<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>

You need these 2 files (menu.js and menucontext.js) for the code to work
correctly. If you have them, import them into the same folder that the
page is in. Now try it.


Bonnie E. Hale said:
This is just a mock up she did for me to see how it looks. She is adding
a nav bar for me but she used HER nav bar for me to see what it would
look like.

I left off the header stuff. That part is correct but below is the html
that does now work right

<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px
Arial; color: #000000; cursor: hand; z-index:100}
#MainTable A:hover {color: #383838;}
</style>

<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=0 //specify whether menu should stay static (works only in
IE4+)
var menucolor="#91DBFF" //specify menu color
var submenuwidth=150 //specify sub menus' width

</script>
</head>

<body>

<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script><br><br><br>


Bonnie
www.bonniesplants.com


Trevor L. said:
Bonnie E. Hale wrote:

How do I find out if I have java script (even though I have no clue
what it is) ?

If it uses Javascript, you will find a set of tags
<script type="text/javascript">
</script>

This wording may vary a bit e.g.
<script language="javascript">, or similar. I don't use this at all, so
I have (deliberately ??) forgotten its format

You may see src="xxx.js" inside the <script> tag. This is a reference to
an external file holding the JS.

The tags may be in the <head> section or in the <body> section (when
looking at the Code or HTML view)

Anyway look for the tag <script .........>

What is it?
A scripting language that extends the capabilities of HTML.
An example is a button that you can click to go somewhere else or
perform some action

And any problems, post back here, preferably with the URL of the website
(as in my signature)
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 

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