Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:56

Javascript error help!


Poster: Endel2005
Dated: Saturday August 26 2006 - 5:38:29 BST

I have been struggling with this issue for a week now. I am getting this error.
Object doesn't support this property or method. I will attached my code. Any help anyone can give me would be most helpful.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<body>
<HTML>
<HEAD>
<TITLE>Table Based Menu</title>
</HEAD>
<BODY>
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<noscript><a href="http://www.milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu_data.js"></SCRIPT>
   <title>Company Name Website</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#ffffff">

<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  <tr>
   <td width="50%" background="images/bg.gif" height="663"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
   <td valign="bottom" background="images/bg_left.gif" height="663"><img src="images/bg_left.gif" alt="" width="17" height="16" border="0"></td>
   <td height="663" valign="top" width="788">
      <div align="center">
      <table border="1" cellspacing="0" cellpadding="0" width="0" height="161" bgcolor="#FFFFFF" id="table3">
<tr>
   <td height="159" width="1560" valign="top"><p align="center">
   <img border="0" src="HSS_LOGO.jpg" width="206" height="156" align="left"></p>
   <p class="MsoNormal" align="center">
   &nbsp;<p class="MsoNormal" align="center">
   <b>
   <span style="font-family: Verdana; "><font size="1">Henry's
   SuperStore</font></span><font size="1"><br>
   </font><font face="Verdana" size="1">&quot;Your One Stop Source for all your equipment needs&quot;</font></b><center>
   <center><center>
   &nbsp;</center>
   <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" id="TEST" width="561" height="34" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
      <param name="movie" value="TEST.swf">
      <param name="quality" value="high">
      <param name="bgcolor" value="#FFFFFF">
      <embed name="TEST" src="TEST.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="561" height="34" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
   </center>
   </center></td>
</tr>
</table>
      </div>
      <table width="780" border="1" cellspacing="0" cellpadding="0" bgcolor="#BCBCBC" bordercolor="#FF0000" bordercolordark="#C0C0C0" bordercolorlight="#C0C0C0" height="33">
        <tr>
          <td height="31" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0">
            &nbsp;</td>
        </tr>
      </table>
      <div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="780" height="112">
<tr>
   <td valign="top">
<div align="center">
<table border="1" cellspacing="0" cellpadding="0" width="788" id="table1" bordercolor="#EF6D00" bordercolordark="#FF0000" bordercolorlight="#FF0000">
<tr valign="top">
   <td width="114" bgcolor="#FF3C40" bordercolor="#EF6D00" bordercolorlight="#FF3C40" bordercolordark="#FF3C40" height="270">
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">
   &nbsp;</div>
   </td>
   <td width="668" height="270">
<b>&nbsp;&nbsp;&nbsp;</b><blockquote>
   <p>&nbsp;</p>
</blockquote>
<div align="center"><b><font size="7">COMMERICAL</font><font size="7"> HERE</font></b></div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">
   <!--webbot bot="FLCursorEffects" version="1.0.0" effect="America" xoffset="10" yoffset="10" timeout="2" stationaryimage="CE1.gif" northimage="CE1.gif" neimage="CE2.gif" eastimage="CE1.gif" seimage="CE2.gif" southimage="CE1.gif" swimage="CE2.gif" westimage="CE1.gif" nwimage="CE2.gif" mass="1" elasticity="2" acceleration="20" clientside preview="&lt;img src=&quot;file:///C:/Documents and Settings/Administrator/My Documents/My Webs/HENRY/_frontlook/CELogo.gif&quot;&gt;" startspan -->

<script language="JavaScript" src="./_frontlook/indexnew1.html_ce.js"></script>
<script language="JavaScript">
StartCE(
   'Movement',
   20,
   2,
   1,
   2,
   './_frontlook/CE1.gif',
   './_frontlook/CE1.gif',
   './_frontlook/CE2.gif',
   './_frontlook/CE1.gif',
   './_frontlook/CE2.gif',
   './_frontlook/CE1.gif',
   './_frontlook/CE2.gif',
   './_frontlook/CE1.gif',
   './_frontlook/CE2.gif',
   10,
   10);
</script>
<!--webbot bot="FLCursorEffects" endspan i-checksum="22578" -->&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
<div align="center">&nbsp;</div>
   </td>
</tr>
</table>
   </div>
   </td>
   <td width="4" height="112" valign="top">
&nbsp;</td>
<form action="" method="post">
   <td valign="bottom" width="350" height="112">
&nbsp;</td>
</form></tr>

</table>
      </div>
<p class="px">
<table border="0" cellspacing="0" cellpadding="0" width="780" align="center">
<tr bgcolor="#BCBCBC">
   <td width="198"><img src="images/left01.gif" alt="" width="198" height="29" border="0"></td>
   <td width="288"><img src="images/fon01.gif" alt="" width="288" height="29" border="0"></td>
   <td align="right" width="294">
   <img border="0" src="SPECIALS.gif" width="299" height="28"></td>
</tr>
<tr>
   <td width="198" bgcolor="#FF3C40" background="images/fon_left.jpg">
<div align="center"><img src="images/left_top.jpg" alt="" width="198" height="16" border="0"></div>
<p class="left"><img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica,sans-serif" size="1">We
do offer financing with the following companies:<br>
<br>
Sheffield Finance<br>
GE Finance Company<br>
Wells Fargo<br>
Harrison Finance</font></p>
            <p class="left">
         <a href="http://www.henryssuperstore.com/finance.htm">Read more</a></p>
<div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div>
<p class="left"><img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica,sans-serif" size="1">We
will continue to have a display in the Panama City Mall through September 2006.
We are featuring Montana Tractors, Cub Cadet Mowers and Cub Cadet 4X4 Utility
Vehicles. Brochures with products we sell are available there. </font></p>
<p class="left"><a href="http://www.henryssuperstore.com/specials.htm">Read more</a></p>
<div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div>
<p class="left">
<img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica,sans-serif" size="1">New
Toro Dealer. We will service and sell Toro Products beginning August 21, 2006.</font></p>
<div align="left">
   <p class="left"><a href="http://www.toro.com">Read more</a></p>
</div>
   </td>
   <td width="288">
<b>Some New Product</b><img border="0" src="spec_c4864.jpg" width="81" height="60" align="right"><b><br>Features List</b><p class="left"><span style="font-weight: 400"><font color="#000000">BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH.</font></span></p>
<p><font color="#000000">BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH.</font></p>
<p><font color="#000000">BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH.</font></p>
<p><font color="#000000">BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH.</font></p>
<p>&nbsp;</p>
   </td>
   <td width="294" background="images/e03.gif">
<div align="center"><img src="images/right01.jpg" width="294" height="15" alt="" border="0"></div>
<table border="0" cellspacing="0" cellpadding="0" width="95%" background="" align="right" id="table4">
<tr>
   <td>
<img border="0" src="spec_c4864.jpg" width="117" height="87"><br>
                  <a href="">
<img src="button%20more%20info.gif" width="118" height="34" alt="" border="0"></a><br>
                  <br>
   </td>
   <td>
<p class="right"><b>SOME PRODUCT NAME DESCRIPTION</b></p>
<p class="right"><img src="images/e_punct_b.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<font color="#000000">BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH.</font></p>
<p class="right"><a href="">Read more</a></p>
   </td>
</tr>
<tr>
   <td colspan="2"><img src="images/e02.gif" width="271" height="12" alt="" border="0"></td>
</tr>
<tr>
   <td>
<img border="0" src="spec_c4864.jpg" width="116" height="90"><br>
                  <a href="">
<img src="button%20more%20info.gif" width="118" height="34" alt="" border="0"></a><br>
                  <br>
   </td>
   <td>
<p class="right"><b>SOME PRODUCT NAME DESCRIPTION</b></p>
<p class="right"><img src="images/e_punct_b.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<font color="#000000">BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH </font></p>
<p class="right"><a href="">Read more</a></p>
   </td>
</tr>
</table>
   </td>
</tr>
<tr valign="top">
   <td width="198" bgcolor="#FF3C40" background="images/fon_left.jpg" height="189">
<div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div>
<p class="left"><img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica,sans-serif" size="1">We
just received our Florida State License as a Certified Service Warranty
Representative.</font></p>
            <p class="left">
         <a href="http://www.henryssuperstore.com/service.htm">Read more</a></p>
<div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div>
<p class="left">
<img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;&nbsp;<font face="Verdana" size="1"><span style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">Pickin'
&amp; Grinin' Every 3rd Saturday of the Month.&nbsp; Local musicians get together and
play Gospel, Country &amp; Blue Grass Music for several hours.&nbsp; Come join in or just
sit and enjoy.&nbsp; Everyone is welcome.&nbsp; Starts at 1:00 pm.</span></font></p>
<div align="left">
   <p class="left"><a href="http://www.henryssuperstore.com/employment.htm">
   Read more</a></p>
</div>
   </td>
   <td width="288" height="189">
<p><b>Some New Product</b><img border="0" src="spec_c4864.jpg" width="81" height="60" align="right"><b><br>Features List</b></p>
<p class="left"><span style="font-weight: 400"><font color="#000000">BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH.</font></span></p>
<p><font color="#000000">BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH </font></p>
   </td>
   <td width="294" background="images/e03.gif" height="189">
<div align="center"><img src="images/right01.jpg" width="294" height="15" alt="" border="0"></div>
<table border="0" cellspacing="0" cellpadding="0" width="95%" background="" align="right">
<tr>
   <td>
<img border="0" src="spec_c4864.jpg" width="117" height="87"><br>
                  <a href="">
<img src="button%20more%20info.gif" width="118" height="34" alt="" border="0"></a><br>
                  <br>
   </td>
   <td>
<p class="right"><b>SOME PRODUCT NAME DESCRIPTION</b></p>
<p class="right"><img src="images/e_punct_b.gif" width="5" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<font color="#000000">BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH
BLAH BLAH BLAH BLAH BLAH BLAH BLAH </font></p>
<p class="right"><a href="">Read more</a></p>
   </td>
</tr>
<tr>
   <td colspan="2"><img src="images/e02.gif" width="271" height="12" alt="" border="0"></td>
</tr>
</table>
   </td>
</tr>
</table>
<div class="px" align="center"><img src="images/bot01.jpg" width="780" height="9" alt="" border="0"></div>
<table border="0" cellspacing="0" cellpadding="0" width="780" align="center">
<tr>
   <td><p>Copyright &reg; 2006 HenrysSuperStore.com</p></td>
         <td height="50">
            <p class="bot" align="center"><b>
         <a href="http://www.henryssuperstore.com">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;
         <a href="http://www.henryssuperstore.com/service.htm">Services</a>&nbsp;&nbsp;&nbsp;&nbsp;
         <a href="http://www.henryssuperstore.com/adminstaff.htm">Henry's SuperStars</a>&nbsp;&nbsp;&nbsp; &nbsp;<a href="http://www.henryssuperstore.com/about.htm">About
         Us</a>&nbsp;&nbsp;&nbsp;&nbsp;
         <a href="http://www.henryssuperstore.com/contact.htm">Contacts
         Us</a></b></p>
   </td>
</tr>
</table>
   </td>
   <td valign="bottom" background="images/bg_right.gif" height="663" width="17"><img src="images/bg_right.gif" alt="" width="17" height="16" border="0"></td>
   <td width="50%" background="images/bg.gif" height="663"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>

</body>
<script>


// - End of JavaScript - -->
</script>
</html>


Poster: Ruth
Dated: Sunday August 27 2006 - 5:37:50 BST

Hi,

Somehow you will have to get that page someplace where it can be tested. We can't build the page since it has a lot of javascript on it other than the menu, and a lot of images.

Ruth

Javascript error help!


Poster: Endel2005
Dated: Sunday August 27 2006 - 6:04:03 BST

I have it up on a temp site

http://www.eliteimagingservices.com/HEN ... xnew1.html


Poster: Ruth
Dated: Sunday August 27 2006 - 8:29:24 BST

Hi,

OK, the object error has to do with the
Code:
./_frontlook/indexnew1.html_ce.js


I don't know what that is but it's not findable. I've tried downloading it, and it just keeps telling me it's not there.

The menu not showing has to do with the base href that's in there.

Code:
<base href="file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/My%20Webs/HENRY/indexnew1.html" fptype="TRUE">
When I removed that from the downloaded page the menu showed up.

A couple of other things. You have two menu data files listed in there and you seem to have each file with the same name as to menuStyle and submenuStyle but they are different styles in each file. I suggest you rename one of those, say menuStyle and menuStyle1 in the other file.

I'd suggest if the submenus are going to be different for each menu, you name the submenus differently and the main menus should have different names. Home-Horz and Home_vert maybe.

Hope this helps.

Ruth


Poster: Ruth
Dated: Sunday August 27 2006 - 8:32:56 BST

Sorry, I forgot to post what FF is giving me as the errors, though it is showing the menu. And, are you trying to put the menu in a table? If so that is not the way to do it. If not, then move the calls for the menu files to the first thing after the body tag.

Code:
Security Error: Content at http://www.eliteimagingservices.com/HENRY/indexnew1.html may not load or link to file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/My%20Webs/HENRY/indexnew1.html.


Code:
Error: StartCE is not defined
Source File: http://www.eliteimagingservices.com/HENRY/indexnew1.html
Line: 91


The second one is the one that is the object error in IE.

Ruth

Javascript error help!


Poster: Endel2005
Dated: Sunday August 27 2006 - 16:01:28 BST

That file has to do with the mouse cursor effect. I am copying and pasting the indexnew1.html_ce.js file

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/


var flce_ns4up, flce_ie4up, flce_ns6up;
var flce_AnimateTimerId;

// only if browser is not N3, scan for the other browsers. otherwise N3 shows error
if ( navigator.appName == "Netscape" && parseInt(navigator.appVersion,10) == 3 )
{
flce_ns4up = flce_ie4up = flce_ns6up = 0;
}
else
{
flce_ie4up = (document.all) ? 1 : 0;
flce_ns6up = (document.getElementById && !flce_ie4up)? 1 : 0;
if ( ! flce_ie4up && ! flce_ns6up ) flce_ns4up = 1; // browser sniffer
}

var flce_Direction = 'Movement';

var flce_2pi = (Math.PI*2);

var flce_pi_4 = (Math.PI/4);

var flce_e = 0.392699;
var flce_se = flce_e + flce_pi_4;
var flce_s = flce_se + flce_pi_4;
var flce_sw = flce_s + flce_pi_4;
var flce_w = flce_sw + flce_pi_4;
var flce_nw = flce_w + flce_pi_4;
var flce_n = flce_nw + flce_pi_4;
var flce_ne = flce_n + flce_pi_4;

// define number of divs
var flce_nDots = 2;

// define starting position of image
var flce_Xpos = 0;
var flce_Ypos = 0;

var flce_OldXpos = 0, flce_OldYpos = 0;

// define speed of moving image
var flce_DELTAT = 0.1;

// define how far the image drops from the cursor
var flce_SEGLEN = 10;

// define how big is the loop the image makes around the cursor
var flce_SPRINGK = 10;

// the greater the mass the slower the speed of image
var flce_MASS = 1;

// the greater the gravity the smaller is the loop
var flce_GRAVITY = 50;

// the greater the resistance the slower the speed of image
var flce_RESISTANCE = 10;

var flce_STOPVEL = 0.1 //Terminal velocity 0.1

var flce_STOPACC = 0.1 // Stop Acceleration 0.1;
var flce_DOTSIZE = 11;

var flce_Timeout = 0;

var flce_XOffset = 0;
var flce_YOffset = 0;

// define the size of the bounces of the image
var flce_BOUNCE = 0.75;
var flce_isNetscape = navigator.appName=="Netscape";
var flce_followmouse = true;
var flce_dots = new Array();

var flce_C_N = 2, flce_C_NE = 3, flce_C_E = 4, flce_C_SE = 5, flce_C_S = 6, flce_C_SW = 7, flce_C_W = 8, flce_C_NW = 9

var flce_ImageArray = new Array();

//Copyright 2002- DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function StopEffect ()
{
var i, j, img;

clearInterval ( flce_AnimateTimerId );
for ( i = 0 ; i < flce_nDots ; i++)
{
img = "dot_ce_" + i
if ( flce_ie4up )
{
document.all[img].style.visibility = "hidden";
document.images["image_ce_"+i+"_"+flce_dots[i].VisibleImage].style.visibility = "hidden";
}
else if ( flce_ns4up )
{
document.layers[img].document.open ();
document.layers[img].document.write ( "" );
document.layers[img].document.close ();
document.layers[img].visibility = "hidden";
}
else if ( flce_ns6up )
{
var elm = document.getElementById(img);
elm.style.visibility = "hidden";
document.images["image_ce_"+i+"_"+flce_dots[i].VisibleImage].style.visibility = "hidden";
}
}
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function init()
{
var i = 0;
for (i = 0; i < flce_nDots; i++)
{
flce_dots[i] = new dot(i);
}
for (i = 0; i < flce_nDots; i++)
{
flce_dots[i].obj.left = flce_dots[i].X;
flce_dots[i].obj.top = flce_dots[i].Y;
if (flce_ie4up)
{
flce_dots[i].obj.pixelWidth = flce_dots[i].objImg.width;
}
else if (flce_ns4up)
{
flce_dots[i].obj.clip.width = flce_dots[i].objImg.width;
}
}
if (flce_ie4up)
{
setTimeout("startanimate()", 3000);
}
else if(flce_ns4up || flce_ns6up)
{
startanimate();
}
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function dot(i)
{
this.X = flce_Xpos;
this.Y = flce_Ypos;
this.dx = 0;
this.dy = 0;
this.index = i;
this.VisibleImage = 0;
if (flce_ie4up)
{
this.obj = eval("dot_ce_" + i + ".style") ;
this.objImg = document.images["image_ce_" + i + "_0"];
}
else if(flce_ns4up)
{
this.obj = document.layers["dot_ce_"+i];
this.objImg = document.layers["dot_ce_"+i].clip;
}
else if (flce_ns6up)
{
this.obj = eval(document.getElementById("dot_ce_" + i ).style);
this.objImg = document.images["image_ce_" + i + "_0"];
}
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function startanimate()
{
flce_AnimateTimerId = setInterval("animate()", 20);
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function MoveHandler(e)
{
if (flce_ns4up)
{
flce_Xpos = e.pageX + (flce_XOffset);
flce_Ypos = e.pageY + (flce_YOffset);
}
else if(flce_ns6up)
{
flce_Xpos = e.pageX + (flce_XOffset);
flce_Ypos = e.pageY + (flce_YOffset);
}
return true;
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function MoveHandlerIE()
{
flce_Xpos = window.event.x + document.body.scrollLeft + (flce_XOffset);
flce_Ypos = window.event.y + document.body.scrollTop + (flce_YOffset);
}

if (flce_ie4up)
{
document.onmousemove = MoveHandlerIE;
}
else if (flce_ns4up)
{
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
}
else if (flce_ns6up)
{
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = MoveHandler;
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function vec(X, Y)
{
this.X = X;
this.Y = Y;
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function springForce(i, j, spring)
{
var dx = (flce_dots[i].X - flce_dots[j].X);
var dy = (flce_dots[i].Y - flce_dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > flce_SEGLEN)
{
var springF = flce_SPRINGK * (len - flce_SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
}
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function AssignDirectionalImage(xnew,ynew,xold,yold)
{
var angle = Math.atan(((ynew - yold) / (xnew - xold)));
var NewVisibleImage = 0;
if ( angle < 0 )
{
if ( (xnew-xold) < 0 )
angle = Math.PI + angle;
else
angle = flce_2pi + angle;
}
else
{
if ( (ynew-yold) < 0 )
angle += Math.PI;
}

if (angle >= flce_e && angle <= flce_se )
{
NewVisibleImage = flce_C_SE;
}
else if (angle >= flce_se && angle <= flce_s)
{
NewVisibleImage = flce_C_S;
}
else if (angle >= flce_s && angle <= flce_sw)
{
NewVisibleImage = flce_C_SW;
}
else if (angle >= flce_sw && angle <= flce_w)
{
NewVisibleImage = flce_C_W;
}
else if (angle >= flce_w && angle <= flce_nw)
{
NewVisibleImage = flce_C_NW;
}
else if (angle >= flce_nw && angle <= flce_n)
{
NewVisibleImage = flce_C_N;
}
else if (angle >= flce_n && angle <= flce_ne)
{
NewVisibleImage = flce_C_NE;
}
else
{
NewVisibleImage = flce_C_E;
}
return NewVisibleImage;
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function animate()
{
var start = 1;

if (flce_followmouse)
{
flce_dots[0].X = flce_Xpos;
flce_dots[0].Y = flce_Ypos;
start = 1;
}
for (i = start ; i < 2 ; i++ )
{
var NewVisibleImage = 0, SavedObj;

flce_OldXpos = flce_dots[i].X
flce_OldYpos = flce_dots[i].Y

var spring = new vec(0, 0);

if (i > 0)
{
springForce(i-1, i, spring);
}
if (i < (flce_nDots - 1))
{
springForce(i+1, i, spring);
}
var resist = new vec(-flce_dots[i].dx * flce_RESISTANCE,-flce_dots[i].dy * flce_RESISTANCE);
var accel = new vec((spring.X + resist.X)/ flce_MASS,(spring.Y + resist.Y)/ flce_MASS + flce_GRAVITY);
flce_dots[i].dx += (flce_DELTAT * accel.X);
flce_dots[i].dy += (flce_DELTAT * accel.Y);
if (Math.abs(flce_dots[i].dx) < flce_STOPVEL && Math.abs(flce_dots[i].dy) < flce_STOPVEL &&
Math.abs(accel.X) < flce_STOPACC &&
Math.abs(accel.Y) < flce_STOPACC)
{
flce_dots[i].dx = 0;
flce_dots[i].dy = 0;
}
flce_dots[i].X += flce_dots[i].dx;
flce_dots[i].Y += flce_dots[i].dy;
var height, width;

if (flce_isNetscape)
{
height = self.innerHeight + self.pageYOffset;
width = self.innerWidth + self.pageXOffset;
}
else
{
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
if (flce_dots[i].Y >= height - flce_dots[i].objImg.height - 1)
{
if (flce_dots[i].dy > 0)
{
flce_dots[i].dy = flce_BOUNCE * -flce_dots[i].dy;
}
flce_dots[i].Y = height - flce_dots[i].objImg.height - 1;
}
else if (flce_dots[i].Y < 0)
{
if (flce_dots[i].dy < 0)
{
flce_dots[i].dy = flce_BOUNCE * -flce_dots[i].dy;
}
flce_dots[i].Y = 0;
}
if (flce_dots[i].X >= width - flce_dots[i].objImg.width)
{
if (flce_dots[i].dx > 0)
{
flce_dots[i].dx = flce_BOUNCE * -flce_dots[i].dx;
}
flce_dots[i].X = width - flce_dots[i].objImg.width - 1;
}
else if (flce_dots[i].X < 0)
{
if (flce_dots[i].dx < 0)
{
flce_dots[i].dx = flce_BOUNCE * -flce_dots[i].dx;
}
flce_dots[i].X = 0;
}
if (flce_Direction == "Movement")
{
if (Math.abs(flce_dots[i].X - flce_OldXpos ) > 5 || Math.abs(flce_dots[i].Y - flce_OldYpos) > 5)
{
NewVisibleImage = AssignDirectionalImage(flce_dots[i].X,flce_dots[i].Y,flce_OldXpos,flce_OldYpos)
}
else
{
NewVisibleImage = 1;
}
}
else if (flce_Direction == "Cursor")
{
flce_OldXpos = flce_dots[i].X + (flce_dots[i].objImg.width/2);
flce_OldYpos = flce_dots[i].Y + (flce_dots[i].objImg.height/2);
NewVisibleImage = AssignDirectionalImage(flce_Xpos-(flce_XOffset), flce_Ypos-(flce_YOffset), flce_OldXpos, flce_OldYpos);
}
flce_dots[i].obj.left = flce_dots[i].X ;
flce_dots[i].obj.top = flce_dots[i].Y ;

if ( flce_dots[i].VisibleImage != NewVisibleImage )
{
if ( flce_ie4up || flce_ns6up )
{
img1 = document.images["image_ce_" + i + "_" + flce_dots[i].VisibleImage];
img2 = document.images["image_ce_" + i + "_" + NewVisibleImage];
img2.style.visibility = "visible";
img1.style.visibility = "hidden";
}
else if ( flce_ns4up )
{
img1=document.layers["dot_ce_" + i].document.layers["imgdot_ce_" + i + "_" + flce_dots[i].VisibleImage];
img2=document.layers["dot_ce_" + i].document.layers["imgdot_ce_" + i + "_" + NewVisibleImage];
img1.visibility = "hidden";
img2.visibility = "show";
flce_dots[i].objImg.width = img2.document.images[0].width;
flce_dots[i].objImg.height = img2.document.images[0].height;
}
flce_dots[i].VisibleImage = NewVisibleImage;
}
}
flce_OldXpos = flce_Xpos
flce_OldYpos = flce_Ypos
}

//Copyright 2002 - DPA Software
//All Rights Reserved
//http://www.frontlook.com/

function StartCE ( Direction, Acceleration, Elasticity, MASS, Timeout,
StationaryImage, NImage, NEImage, EImage, SEImage, SImage, SWImage, WImage, NWImage,
x_offset, y_offset )
{
flce_Direction = Direction;
flce_DELTAT = Acceleration/1000;
flce_SPRINGK = Elasticity;
flce_MASS = MASS;
Timeout = Timeout * 60 * 1000;
flce_ImageArray[0] = StationaryImage;
flce_ImageArray[1] = StationaryImage;
flce_ImageArray[flce_C_N] = NImage;
flce_ImageArray[flce_C_NE] = NEImage;
flce_ImageArray[flce_C_E] = EImage;
flce_ImageArray[flce_C_SE] = SEImage;
flce_ImageArray[flce_C_S] = SImage;
flce_ImageArray[flce_C_SW] = SWImage;
flce_ImageArray[flce_C_W] = WImage;
flce_ImageArray[flce_C_NW] = NWImage;

flce_XOffset = x_offset;
flce_YOffset = y_offset;

for ( i = 0 ; i < flce_nDots ; i++)
{
if ( flce_ie4up || flce_ns6up )
{
document.write ( "<div id=\"dot_ce_"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: hidden; TOP: 0px; LEFT: 0px;\">" );
for ( j= flce_ImageArray.length-1 ; j >= 0 ; j-- )
{
document.write ( "<img name=\"image_ce_" + i + "_" + j +"\" src=\"" + flce_ImageArray[j] + "\" border=\"0\" style=\"position:absolute;left:0;top:0;visibility:hidden;\">" );
}
document.write ( "</div>");
}
else if ( flce_ns4up )
{
document.write ( "<layer name=\"dot_ce_"+ i +"\" left=\"0\" top=\"0\" visibility=\"hidden\">" );
for ( j= flce_ImageArray.length-1 ; j >= 0 ; j-- )
{
document.write ( "<layer name=\"imgdot_ce_" + i + "_" + j + "\" left=\"0\" top=\"0\" visibility=\"hidden\">" );
document.write ( "<img src=\"" + flce_ImageArray[j] + "\" name=\"image_ce_" + i + "_" + j +"\" border=\"0\">" );
document.write ( "</layer>" );
}
document.write ( "</layer>" );
}
}

if (flce_ie4up)
{
document.all["dot_ce_1"].style.visibility = "visible";
}
else if (flce_ns4up)
{
document.layers["dot_ce_1"].visibility = "show";
}
else if(flce_ns6up)
{
var elm = document.getElementById("dot_ce_1");
elm.style.visibility = "visible";
}

if ( flce_ns4up || flce_ie4up || flce_ns6up )
{
init();

if (Timeout != 0)
{
setTimeout ( "StopEffect()", Timeout );
}
}
}


Poster: Ruth
Dated: Monday August 28 2006 - 5:18:33 BST

Hi,

I'm sorry, but I don't know anything about that js file. I have no idea why you're getting that error other than it can't find the file. We can only help with the Milonic menu and the reason the menu is not showing has to do with that base url href that you have in there.

Ruth


Poster: John
Dated: Monday August 28 2006 - 15:27:40 BST

It appears you're trying to link to a file on your local drive...
Code:
src=&quot;file:///C:/Documents and Settings/Administrator/My Documents/My Webs/HENRY/_frontlook/CELogo.gif&quot;&gt;"

...which certainly will not work online.