"Object expected" error

wxdqz

New Member
Hi -

I am getting an "object expected" error when I run a page with the following code in it:

<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#551A8B" alink="#0000FF" onload="moveIt()" onunload="clearTimeout(scrollid)">

I am guessing that the onload="moveIt()" portion is causing the error, but I wanted to know if someone would confirm this. I am also getting a ' "scrollid" is undefined ' error as well. Here is the code for the entire page.

<html>
<head>
<title>Tyson Associates home page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript">
<!--

// This is the menu generator code

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}



//-->


</script>


</head>


<body bgcolor="#FFFFFF" onLoad="moveIt()" onunload="clearTimeout(scrollid)">
<font face="Arial,Helvetica" size="-2">



<center>
<img src=http://www.webdeveloper.com/forum/archive/index.php/"logo.jpg" width="279" height="79"><br>
470 Main Street, Ridgefield, CT 06877, USA<br>
(203) 431 8905, Fax (203) 438 8232<br><br>
<font size="-1"><img src="black_bullet.gif" width=10" height="10">Circulation
Outsource Management<img src="black_bullet.gif" width=10" height="10">Direct
Response Marketing<img src="black_bullet.gif" width=10" height="10">Consulting<img src="black_bullet.gif" width=10" height="10"></font>
</center>
<br><br>
<table width="750" border="0">
<tr>
<td bgcolor="3399CC" valign=top width="150"><font face="Arial,Helvetica" size="1" color="FFFF00"><center>


<script language="JavaScript1.2">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> -->

<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // <!-- m --><a class="postlink" href="http://onyx.idbsu.edu/~ipowell">http://onyx.idbsu.edu/~ipowell</a><!-- m -->

document.write("<center>" + "The current date & time is:" + "<br>"+ lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->

</script>


<script language="Javascript1.2">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - <!-- m --><a class="postlink" href="http://www.javascript-page.com">http://www.javascript-page.com</a><!-- m -->

var tags_before_clock = "<small>"
var tags_after_clock = "</small>"

if(document.layers) {
document.write('<layer id="clock"></layer><br>');
}

if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<span id="clock"></span><br>');
}

function upclock(){
var dte = new Date();
var hrs = dte.getHours();
var min = dte.getMinutes();
var sec = dte.getSeconds();
var col = ":";
var spc = " ";
var apm;

if (12 < hrs) {
apm="PM";
hrs-=12;
}

else {
apm="AM";
}

if (hrs == 0) hrs=12;
if (min<=9) min="0"+min;
if (sec<=9) sec="0"+sec;

if(document.layers) {
document.clock.document.write(tags_before_clock
+hrs+col+min+col+sec+spc+apm+tags_after_clock);
document.clock.document.close();
}

if (navigator.appVersion.indexOf("MSIE") != -1){
clock.innerHTML = tags_before_clock+hrs
+col+min+col+sec+spc+apm+tags_after_clock;
}
if (document.getElementById && !document.all)
{document.getElementById("clock").innerHTML = tags_before_clock+hrs+col+min+col+sec+spc+apm+tags
_after_clock;}
}

setInterval("upclock()",1000);
//-->
</script>



</center>
</font>
</td>
<td bgcolor="3399CC" valign=center colspan=3><font face="Arial,Helvetica" size="-1" color="FFFF00">
<!--Begin Text Scroller Script-->
<SCRIPT>
function scroll(msg,ctrlwidth){
msg=" "+msg
Mymsg=msg
while(Mymsg.length<ctrlwidth){Mymsg += msg}
document.write('<FORM NAME="Scroll">')
document.write('<CENTER><INPUT NAME="scroll" VALUE= <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"'+Mymsg+'" SIZE= '+ctrlwidth+'></CENTER>')
document.write('</FORM>')
var scrollid=null
rollmsg()
}
function rollmsg(){
MyMsg=document.Scroll.scroll.value
MyMsg=MyMsg.substring(1,MyMsg.length)+MyMsg.substring(0,1)
document.Scroll.scroll.value=MyMsg
scrollid=setTimeout("rollmsg()",200)
}
scrollid=setTimeout("rollmsg()",200)
</SCRIPT>
<script language='JavaScript'>

// This is where the copy for the ticker is changed

scroll("**Jerry Okabe moves to BPA**NTCFI Meeting date changed to December 12th 2002**Check out the latest results to the postal monitor**Latest news from BPA at <!-- w --><a class="postlink" href="http://www.bpai.com**">www.bpai.com**</a><!-- w -->",50)
</script>
<!--End Text Scroller Script-->
</font></td>
</tr>
<tr>
<td bgcolor="FFFFCC" valign=top width="150"><font face="Arial,Helvetica" size="-1" color="FF0000"><center>This Week's<br>Events and Calendar<br>

<!-- This is where any new events for the current week can be entered -->

</center></font></td>
<td colspan=3><table width="100%" border="0">
<tr>
<td bgcolor="3399CC"><font face="Arial,Helvetica" size="-1" color="FFFF00"><center>
<SELECT name="select" onChange="MM_jumpMenu('parent',this,0)"style="color:FFFF00;background-color:3399CC"><OPTION selected>About Us</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"biog.html">Biographies</OPTION>
<OPTION value="services.html">What We Do</OPTION>
<OPTION value="contacts.html">Contact Us</OPTION>
</SELECT>
</center></font>
</td>
<td bgcolor="3399CC"><font face="Arial,Helvetica" size="-1" color="FFFF00"><center>
<SELECT name="select" onChange="MM_jumpMenu('parent',this,0)"style="color:FFFF00;background-color:3399CC"><OPTION selected>Resources</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"events.html">Events</OPTION>
<OPTION value="postal.html">Postal Monitor 2002</OPTION>
<OPTION value="publinks.html">Publishing Links</OPTION>
<OPTION value="links.html">Links to Publications</OPTION>
<OPTION value="http://www.tysonassociates.com/inhouse.html">In-House Fulfillment Systems</OPTION>
<OPTION value="http://www.tysonassociates.com/outhouse.html">Subscription Bureaus</OPTION>
<OPTION value="directtalk.html">Direct Talk</OPTION>
<OPTION value="http://www.tysonassociates.com/assocs.html">Associations</OPTION>
<OPTION value="http://www.tysonassociates.com/maps.html">Maps and Directions</OPTION>

</SELECT></center></font></td>
<td bgcolor="3399CC"><font face="Arial,Helvetica" size="-1" color="FFFF00"><center><SELECT name="select" onChange="MM_jumpMenu('parent',this,0)"style="color:FFFF00;background-color:3399CC"><OPTION selected>Samples of Creative Work</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"gall.html">Gallery of work</OPTION>
</SELECT></center></font></td>
</tr>
<tr>
<td colspan=3><p><font face="Arial,Helvetica" size="-1" >Since 1982, Tyson Associates has worked for over 200 magazines -- both consumer and business-to-business. We supply comprehensive, full circulation management for publishers of small and mid-size magazines and consult on a project basis on all aspects of circulation management and fulfillment.<br>
Tyson Associates also provides copy and design for direct mail packages, billing and renewal series, space advertising and other collateral circulation materials.<br>
At Tyson Associates you get the best of both worlds -- circulation management advice you can rely on and direct marketing expertise to help you sell and renew more subscriptions.<br>
Our clients deal only with senior circulation professionals not junior staff members and, they save money, too. From strategic planning through execution and analysis, we give you seasoned, professional advice and high quality service for competitive fees.</font></p>
</td>
</tr>
<tr>

<td colspan=3><center>
<img src="crm10070300.jpg" width="60" height="80"> <img src="2pixel_shim.gif" width="2" height="10">
<img src="district_admin70100300.jpg" width="60" height="80">
<img src="2pixel_shim.gif" width="2" height="10"> <img src="econtent10070300.jpg" width="60" height="80">
<img src="2pixel_shim.gif" width="2" height="10"> <img src="emedia10070300.jpg" width="60" height="80">
<img src="2pixel_shim.gif" width="2" height="10"> <img src="kmorld10070300.jpg" width="60" height="80">
<img src="2pixel_shim.gif" width="2" height="10"> <img src="paper10070300.jpg" width="60" height="80">

</center> </td>

</tr>
</table>
</td>
</tr>
<tr>
<td valign=top><center><a href="http://www.circman.com"><img src="cmlogo2.gif" width="130" height="45"></a></center></td>
<td valign=top><center><a href="http://www.ntcfi.org"><img src="ntcfi.gif" width="130" height="45"></a></center></td>
<td valign=top><center><a href="http://www.icnfull.com"><img src="icn.gif" width="130" height="45"></a></center></td>
<td valign=top><center><a href="http://www.circjobs.com"><img src="NewCircjobs.gif" width="130" height="45"></a></center></td>
</tr>


</table>
<br><br>
<center>
<font size="-2" align="right" color="#000000">
&copy; 2002 Web site created by <a href="http://www.untangleweb.com">Untangled Web Design, LLC</a></font>
</center>
</font>

</body>
</html>

Thanks for any help that anyone can give me on this!
 
Top