bryanptcs
Joined: 19 Oct 2006 Posts: 1
|
Posted: Mon Oct 23, 2006 3:56 pm Post subject: Errors running script |
|
|
I have just setup my JS menu and keep getting browser errors. Here is the error:
Line: 86
Char: 7
Error: 'm1' is null or not an object
Code: 0
Here is my code:
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="scripts/favicon.ico">
<TITLE>Palm Tree Computer Systems, Inc.</TITLE>
<link rel="stylesheet" type="text/css" href="styles/style.css">
<meta name="description" content="We build the best and fix the rest. Computers Sales, Service and Repair">
<meta name="keywords" content="Computer, computers, Oviedo, Central Florida, Desktop, Laptop, Domain Name, Cables, Repair">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!--BEGIN JAVASCRIPT-->
<script type="text/javascript" src="scripts/coolmenupro.js"></script>
<script type="text/javascript" src="scripts/menuitems.js"></script>
<link rel="stylesheet" type="text/css" href="styles/menu_styles.css">
<!--begin script for flash-->
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="scripts/AC_RunActiveContent.js" language="javascript"></script>
<!--END script for flash-->
<!--END JAVASCRIPT-->
</head>
<body background="images/bg.gif" leftmargin="0" topmargin="15" marginwidth="0" marginheight="0">
<table width="100%" ><tr><td>
<!-- ImageReady Slices (index.psd) -->
<table id="Table_01" width="780" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="2">
<img src="images/index_01.jpg" width="780" height="22" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/index_02.jpg" width="780" height="56" alt=""></td>
</tr>
<tr>
<td colspan="2"><script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '780',
'height', '238',
'src', 'flash/intro.',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'noscale',
'wmode', 'window',
'devicefont', 'false',
'id', 'flash-animations',
'bgcolor', '#000000',
'name', 'flash/intro',
'menu', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/intro',
'salign', ''
);
}
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="238">
<param name="movie" value="flash/intro.swf">
<param name=quality value=high>
<embed src="flash/intro.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="780" height="238"></embed>
</object></noscript></td>
</tr>
<tr valign="top">
<td width="780" height="356" colspan="2" background="images/index_05.jpg"><script type="text/javascript">
var m1 = new COOLjsMenuPRO("menu1", MENU_ITEMS)
m1.initTop();
</script>
</td>
</tr>
<tr>
<td width="390" height="20" align="center" valign="bottom" background="images/bottombar.gif" class="form"><div align="left"> ©2006.<a href="http://www.palmtreecomputersystems.com" target="_self"> Palm Tree Computer Systems</a>. All Rights Reserved. </div></td>
<td width="390" align="center" valign="bottom" background="images/bottombar.gif" class="form"><div align="right">This site designed and hosted by<a href="http://www.palmtreecomputersystems.com" target="_self"> Palm Tree Computer Systems</a>. </div></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</td></tr></table>
<script type="text/javascript">
m1.init();
m1.show();
</script>
</body>
</html>
THANKS FOR YOUR HELP. |
|