java script error on site

  • Thread starter Thread starter David Berry
  • Start date Start date
D

David Berry

You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page that
defines the functions - no <script> ... </script> tags. You need to add the
JavaScript back into the page.

Also, you have a number of images that are being referenced as files on your
hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see file:/// that's
a file on your hard drive which means you see them but nobody else will.
You need to import your files into your web first and then insert them.
 
PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script is
there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the whirlwind
with the boots). Did you do them yourself?
 
If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page. If
it is included after the BODY tag then no because you're using an ONLOAD
event on the Body tag and the script won't be there until the page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I need
this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took
over the site for these people and redoing it, but keeping the logo. I'm
just sprucing it up a bit and working on uploading their music they wrote
to the site too.
I actually made the buttons in Dreamweaver, because they have that real
easy tool to make rollovers, then I copied them into my FP site. I love
FP, but wish it had some good features. I like to make my own graphics
instead of the ones that are premade in FP.
Thanks,
Lisa A

David Berry said:
PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script is
there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



David Berry said:
You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page
that defines the functions - no <script> ... </script> tags. You need
to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as files on
your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see file:///
that's a file on your hard drive which means you see them but nobody
else will. You need to import your files into your web first and then
insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone know
why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm

 
Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I need
this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took over
the site for these people and redoing it, but keeping the logo. I'm just
sprucing it up a bit and working on uploading their music they wrote to the
site too.
I actually made the buttons in Dreamweaver, because they have that real easy
tool to make rollovers, then I copied them into my FP site. I love FP, but
wish it had some good features. I like to make my own graphics instead of
the ones that are premade in FP.
Thanks,
Lisa A

David Berry said:
PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script is
there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/
 
Look at the code in Code View. The 3 that aren't rolling over don't have
the JS code. Ex:

One that rolls over looks like this:

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a>

One that doesn't (the Book) looks like this:

<a href="book.htm"><img src="images2/navbar_1x4.gif" name="Image4"
width="79" height="25" border="0" id="Image4" /></a>

the mouseout, mouseover functions are missing

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java script
error back.

David Berry said:
If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page.
If it is included after the BODY tag then no because you're using an
ONLOAD event on the Body tag and the script won't be there until the page
loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I need
this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took
over the site for these people and redoing it, but keeping the logo. I'm
just sprucing it up a bit and working on uploading their music they
wrote to the site too.
I actually made the buttons in Dreamweaver, because they have that real
easy tool to make rollovers, then I copied them into my FP site. I love
FP, but wish it had some good features. I like to make my own graphics
instead of the ones that are premade in FP.
Thanks,
Lisa A

PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script
is there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page
that defines the functions - no <script> ... </script> tags. You need
to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as files
on your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see file:///
that's a file on your hard drive which means you see them but nobody
else will. You need to import your files into your web first and then
insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone know
why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java script
error back.

David Berry said:
If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page. If
it is included after the BODY tag then no because you're using an ONLOAD
event on the Body tag and the script won't be there until the page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I need
this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took
over the site for these people and redoing it, but keeping the logo. I'm
just sprucing it up a bit and working on uploading their music they wrote
to the site too.
I actually made the buttons in Dreamweaver, because they have that real
easy tool to make rollovers, then I copied them into my FP site. I love
FP, but wish it had some good features. I like to make my own graphics
instead of the ones that are premade in FP.
Thanks,
Lisa A

David Berry said:
PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script is
there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page
that defines the functions - no <script> ... </script> tags. You need
to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as files on
your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see file:///
that's a file on your hard drive which means you see them but nobody
else will. You need to import your files into your web first and then
insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone know
why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
I"ve got a big mess now. I tried to go in and correct this, but then some
other buttons quit working.
Here is the code I have now: http://www.whirlwindpublishing.com/navbar2.htm
Thanks for all of your help.
Lisa A
<body
onload="MM_preloadImages('images2/navbar_1x1b.gif','images2/navbar_1x2b.gif','images2/navbar_1x3b.gif','images2/navbar_1x4b.gif','images2/navbar_1x5b.gif','images2/navbar_1x6b.gif','images2/navbar_1x7b.gif','images2/navbar_1x8b.gif','images2/navbar_1x9b.gif')">
<div align="center">
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image1','','images2/navbar_1x1b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x1.gif" name="Image5"
width="74" height="25" border="0" id="Image1" /></a></td>
<td>

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image3','','images2/navbar_1x3b.gif',1)"><img
src="images2/navbar_1x3.gif" name="Image3" width="126" height="25"
border="0" id="Image3" /></a></td>
<td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image5','','images2/navbar_1x5b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x5.gif" name="Image5"
width="74" height="25" border="0" id="Image5" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image6','','images2/navbar_1x6b.gif',1)"
href="ourmusic.htm"><img src="images2/navbar_1x6.gif" name="Image6"
width="90" height="25" border="0" id="Image6" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image7','','images2/navbar_1x7b.gif',1)"
href="events.htm"><img src="images2/navbar_1x7.gif" name="Image7" width="60"
height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image8" width="51" height="25" border="0"
id="Image8" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image9','','images2/navbar_1x9b.gif',1)"
href="events.htm"><img src="images2/navbar_1x9.gif" name="Image7" width="60"
height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image9" width="51" height="25" border="0"
id="Image8" /></a></td>
<td>

<a href="contact.htm"><img src="images2/navbar_1x9.gif" name="Image9"
width="64" height="25" border="0" id="Image9" /></a></td>
</tr>
</table>

David Berry said:
Look at the code in Code View. The 3 that aren't rolling over don't have
the JS code. Ex:

One that rolls over looks like this:

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a>

One that doesn't (the Book) looks like this:

<a href="book.htm"><img src="images2/navbar_1x4.gif" name="Image4"
width="79" height="25" border="0" id="Image4" /></a>

the mouseout, mouseover functions are missing

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java
script error back.

David Berry said:
If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page.
If it is included after the BODY tag then no because you're using an
ONLOAD event on the Body tag and the script won't be there until the
page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I
need this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took
over the site for these people and redoing it, but keeping the logo.
I'm just sprucing it up a bit and working on uploading their music they
wrote to the site too.
I actually made the buttons in Dreamweaver, because they have that real
easy tool to make rollovers, then I copied them into my FP site. I
love FP, but wish it had some good features. I like to make my own
graphics instead of the ones that are premade in FP.
Thanks,
Lisa A

PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script
is there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page
that defines the functions - no <script> ... </script> tags. You
need to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as files
on your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see file:///
that's a file on your hard drive which means you see them but nobody
else will. You need to import your files into your web first and then
insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone
know why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
I'm sorry to say but at this point I'd start over with a clean page, add in
the <script></script> tags and redo the buttons

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
I"ve got a big mess now. I tried to go in and correct this, but then some
other buttons quit working.
Here is the code I have now:
http://www.whirlwindpublishing.com/navbar2.htm
Thanks for all of your help.
Lisa A
<body
onload="MM_preloadImages('images2/navbar_1x1b.gif','images2/navbar_1x2b.gif','images2/navbar_1x3b.gif','images2/navbar_1x4b.gif','images2/navbar_1x5b.gif','images2/navbar_1x6b.gif','images2/navbar_1x7b.gif','images2/navbar_1x8b.gif','images2/navbar_1x9b.gif')">
<div align="center">
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image1','','images2/navbar_1x1b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x1.gif" name="Image5"
width="74" height="25" border="0" id="Image1" /></a></td>
<td>

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image3','','images2/navbar_1x3b.gif',1)"><img
src="images2/navbar_1x3.gif" name="Image3" width="126" height="25"
border="0" id="Image3" /></a></td>
<td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image5','','images2/navbar_1x5b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x5.gif" name="Image5"
width="74" height="25" border="0" id="Image5" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image6','','images2/navbar_1x6b.gif',1)"
href="ourmusic.htm"><img src="images2/navbar_1x6.gif" name="Image6"
width="90" height="25" border="0" id="Image6" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image7','','images2/navbar_1x7b.gif',1)"
href="events.htm"><img src="images2/navbar_1x7.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image8" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image9','','images2/navbar_1x9b.gif',1)"
href="events.htm"><img src="images2/navbar_1x9.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image9" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>

<a href="contact.htm"><img src="images2/navbar_1x9.gif" name="Image9"
width="64" height="25" border="0" id="Image9" /></a></td>
</tr>
</table>

David Berry said:
Look at the code in Code View. The 3 that aren't rolling over don't have
the JS code. Ex:

One that rolls over looks like this:

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a>

One that doesn't (the Book) looks like this:

<a href="book.htm"><img src="images2/navbar_1x4.gif" name="Image4"
width="79" height="25" border="0" id="Image4" /></a>

the mouseout, mouseover functions are missing

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java
script error back.

If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page.
If it is included after the BODY tag then no because you're using an
ONLOAD event on the Body tag and the script won't be there until the
page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I
need this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I took
over the site for these people and redoing it, but keeping the logo.
I'm just sprucing it up a bit and working on uploading their music
they wrote to the site too.
I actually made the buttons in Dreamweaver, because they have that
real easy tool to make rollovers, then I copied them into my FP site.
I love FP, but wish it had some good features. I like to make my own
graphics instead of the ones that are premade in FP.
Thanks,
Lisa A

PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing script
is there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the page
that defines the functions - no <script> ... </script> tags. You
need to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as files
on your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see
file:/// that's a file on your hard drive which means you see them
but nobody else will. You need to import your files into your web
first and then insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone
know why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
Glad to help!

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
Just did that and now it's working!! Whew!! What a mess. I have decided
to save the new fresh code and that way I can insert new images in the
future and have it working correctly instead of messing around with each
line.
thanks so much for the great support you have given me!!!

David Berry said:
I'm sorry to say but at this point I'd start over with a clean page, add
in the <script></script> tags and redo the buttons

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
I"ve got a big mess now. I tried to go in and correct this, but then
some other buttons quit working.
Here is the code I have now:
http://www.whirlwindpublishing.com/navbar2.htm
Thanks for all of your help.
Lisa A
<body
onload="MM_preloadImages('images2/navbar_1x1b.gif','images2/navbar_1x2b.gif','images2/navbar_1x3b.gif','images2/navbar_1x4b.gif','images2/navbar_1x5b.gif','images2/navbar_1x6b.gif','images2/navbar_1x7b.gif','images2/navbar_1x8b.gif','images2/navbar_1x9b.gif')">
<div align="center">
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image1','','images2/navbar_1x1b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x1.gif" name="Image5"
width="74" height="25" border="0" id="Image1" /></a></td>
<td>

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image3','','images2/navbar_1x3b.gif',1)"><img
src="images2/navbar_1x3.gif" name="Image3" width="126" height="25"
border="0" id="Image3" /></a></td>
<td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image5','','images2/navbar_1x5b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x5.gif" name="Image5"
width="74" height="25" border="0" id="Image5" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image6','','images2/navbar_1x6b.gif',1)"
href="ourmusic.htm"><img src="images2/navbar_1x6.gif" name="Image6"
width="90" height="25" border="0" id="Image6" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image7','','images2/navbar_1x7b.gif',1)"
href="events.htm"><img src="images2/navbar_1x7.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image8" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image9','','images2/navbar_1x9b.gif',1)"
href="events.htm"><img src="images2/navbar_1x9.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image9" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>

<a href="contact.htm"><img src="images2/navbar_1x9.gif" name="Image9"
width="64" height="25" border="0" id="Image9" /></a></td>
</tr>
</table>

Look at the code in Code View. The 3 that aren't rolling over don't
have the JS code. Ex:

One that rolls over looks like this:

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a>

One that doesn't (the Book) looks like this:

<a href="book.htm"><img src="images2/navbar_1x4.gif" name="Image4"
width="79" height="25" border="0" id="Image4" /></a>

the mouseout, mouseover functions are missing

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java
script error back.

If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one
page. If it is included after the BODY tag then no because you're
using an ONLOAD event on the Body tag and the script won't be there
until the page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I
need this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I
took over the site for these people and redoing it, but keeping the
logo. I'm just sprucing it up a bit and working on uploading their
music they wrote to the site too.
I actually made the buttons in Dreamweaver, because they have that
real easy tool to make rollovers, then I copied them into my FP
site. I love FP, but wish it had some good features. I like to make
my own graphics instead of the ones that are premade in FP.
Thanks,
Lisa A

PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing
script is there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the
page that defines the functions - no <script> ... </script> tags.
You need to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as
files on your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see
file:/// that's a file on your hard drive which means you see them
but nobody else will. You need to import your files into your web
first and then insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone
know why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
Just did that and now it's working!! Whew!! What a mess. I have decided
to save the new fresh code and that way I can insert new images in the
future and have it working correctly instead of messing around with each
line.
thanks so much for the great support you have given me!!!

David Berry said:
I'm sorry to say but at this point I'd start over with a clean page, add
in the <script></script> tags and redo the buttons

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Lisa A said:
I"ve got a big mess now. I tried to go in and correct this, but then
some other buttons quit working.
Here is the code I have now:
http://www.whirlwindpublishing.com/navbar2.htm
Thanks for all of your help.
Lisa A
<body
onload="MM_preloadImages('images2/navbar_1x1b.gif','images2/navbar_1x2b.gif','images2/navbar_1x3b.gif','images2/navbar_1x4b.gif','images2/navbar_1x5b.gif','images2/navbar_1x6b.gif','images2/navbar_1x7b.gif','images2/navbar_1x8b.gif','images2/navbar_1x9b.gif')">
<div align="center">
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image1','','images2/navbar_1x1b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x1.gif" name="Image5"
width="74" height="25" border="0" id="Image1" /></a></td>
<td>

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image3','','images2/navbar_1x3b.gif',1)"><img
src="images2/navbar_1x3.gif" name="Image3" width="126" height="25"
border="0" id="Image3" /></a></td>
<td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image5','','images2/navbar_1x5b.gif',1)"
href="purchase.html"><img src="images2/navbar_1x5.gif" name="Image5"
width="74" height="25" border="0" id="Image5" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image6','','images2/navbar_1x6b.gif',1)"
href="ourmusic.htm"><img src="images2/navbar_1x6.gif" name="Image6"
width="90" height="25" border="0" id="Image6" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image7','','images2/navbar_1x7b.gif',1)"
href="events.htm"><img src="images2/navbar_1x7.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image8" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>
<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image9','','images2/navbar_1x9b.gif',1)"
href="events.htm"><img src="images2/navbar_1x9.gif" name="Image7"
width="60" height="25" border="0" id="Image7" /></a></td>
<td><a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image8','','images2/navbar_1x8b.gif',1)"><img
src="images2/navbar_1x8.gif" name="Image9" width="51" height="25"
border="0" id="Image8" /></a></td>
<td>

<a href="contact.htm"><img src="images2/navbar_1x9.gif" name="Image9"
width="64" height="25" border="0" id="Image9" /></a></td>
</tr>
</table>

David Berry said:
Look at the code in Code View. The 3 that aren't rolling over don't
have the JS code. Ex:

One that rolls over looks like this:

<a onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image2','','images2/navbar_1x2b.gif',1)"
href="aboutus.htm"><img src="images2/navbar_1x2.gif" name="Image2"
width="56" height="25" border="0" id="Image2" /></a>

One that doesn't (the Book) looks like this:

<a href="book.htm"><img src="images2/navbar_1x4.gif" name="Image4"
width="79" height="25" border="0" id="Image4" /></a>

the mouseout, mouseover functions are missing

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Can you take a look at my
http://www.whirlwindpublishing.com/navbar2.htm
I've got a few buttons that aren't rolling over.
Also, when I tried to remove the script in the head, I got the java
script error back.

If the include page is at the top, or is included before any of the
JavaScript is called then you can put all the scripts in the one page.
If it is included after the BODY tag then no because you're using an
ONLOAD event on the Body tag and the script won't be there until the
page loads.

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



Thanks for your help. Now I feel really dumb...
One question. If I use the navigation bar as an include page, do I
need this script inserted on all pages?
As far as the logo, no I didn't do the logo. It is beautiful. I
took over the site for these people and redoing it, but keeping the
logo. I'm just sprucing it up a bit and working on uploading their
music they wrote to the site too.
I actually made the buttons in Dreamweaver, because they have that
real easy tool to make rollovers, then I copied them into my FP site.
I love FP, but wish it had some good features. I like to make my own
graphics instead of the ones that are premade in FP.
Thanks,
Lisa A

PS - I looked at your home page (
http://www.whirlwindpublishing.com/index.htm ) and the missing
script is there. It's:

<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Add that back into the new template page you made.

On a side note, great looking site! I love the logo/graphics (the
whirlwind with the boots). Did you do them yourself?

--
David Berry
FrontPage Support: http://www.frontpagemvps.com/



You have JavaScript functions on your page (such as
onLoad="MM_preloadImages) however there is no JavaScript on the
page that defines the functions - no <script> ... </script> tags.
You need to add the JavaScript back into the page.

Also, you have a number of images that are being referenced as
files on your hard drive rather than files on the server. Ex:
file:///G|/Websites2006/images/navbar_1x3b.gif When you see
file:/// that's a file on your hard drive which means you see them
but nobody else will. You need to import your files into your web
first and then insert them.


--
David Berry
FrontPage Support: http://www.frontpagemvps.com/





I have just added an include page for my java rollover buttons.
When I preview it, I'm getting a java script error. Does anyone
know why?
thanks,
http://www.whirlwindpublishing.com/templatenew.htm


 
Back
Top