Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Expected Code 0

Status
Not open for further replies.

Intensefrank

IS-IT--Management
Mar 28, 2002
19
0
0
US
Hi-
I keep getting an "object expected" code 0 error message when I preview the site I'm working on; I've enabled all possible java and active x IE settings, as well as downloading the current directx. Maybe it's my code-any help would be appreciated...(xutopia, where are ya?)
<html>
<head>
<title>Main</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
onLoad=&quot;resizeTo(screen.availWidth,screen.availHeight)&quot;bgcolor=&quot;#000066&quot;>
</script>
</head>
<body bgcolor=&quot;#000066&quot;>
<div id=&quot;Layer1&quot; style=&quot;position:absolute; width:200px; height:115px; z-index:1; left: 89px; top: 0; background-color: #000066; layer-background-color: #000066; border: 1px none #000066&quot;><img src=&quot;bluelogo.png&quot; width=&quot;800&quot; height=&quot;175&quot;></div>
<div id=&quot;Layer2&quot; style=&quot;position:absolute; width:267px; height:115px; z-index:2; left: 310px; top: 233px&quot;><img src=&quot;snowflake.png&quot; width=&quot;331&quot; height=&quot;322&quot;>
</div>
<div id=&quot;Layer3&quot; style=&quot;position:absolute; width:680px; height:36px; z-index:3; left: 170px; top: 172px&quot;><a href=&quot;difference.htm&quot; onClick=&quot;MM_nbGroup('down','group1','difference','McDiff1.png',0)&quot; onMouseOver=&quot;MM_nbGroup('over','difference','McDiff1.png','McDiff1.png',0)&quot; onMouseOut=&quot;MM_nbGroup('out')&quot;><img name=&quot;difference&quot; src=&quot;McDiff1.png&quot; border=&quot;0&quot; onLoad=&quot;&quot; width=&quot;91&quot; height=&quot;35&quot;>
</a> <a href=&quot;services.htm&quot; onClick=&quot;MM_nbGroup('down','group1','Service1','SVCOFF1.png',0)&quot; onMouseOver=&quot;MM_nbGroup('over','Service1','SVCOFF1.png','SVCOFF1.png',0)&quot; onMouseOut=&quot;MM_nbGroup('out')&quot;><img name=&quot;Service1&quot; src=&quot;SVCOFF1.png&quot; border=&quot;0&quot; onLoad=&quot;&quot; hspace=&quot;60&quot;></a><a href=&quot;svcagree.htm&quot; onClick=&quot;MM_nbGroup('down','group1','Service2','SVCagree1.png',0)&quot; onMouseOver=&quot;MM_nbGroup('over','Service2','SVCagree1.png','SVCagree1.png',0)&quot; onMouseOut=&quot;MM_nbGroup('out')&quot;><img name=&quot;Service2&quot; src=&quot;SVCagree1.png&quot; border=&quot;0&quot; onLoad=&quot;&quot;></a><a href=&quot;aboutus.htm&quot; onClick=&quot;MM_nbGroup('down','group1','About us','about1.png',0)&quot; onMouseOver=&quot;MM_nbGroup('over','About us','about1.png','about1.png',0)&quot; onMouseOut=&quot;MM_nbGroup('out')&quot;><img name=&quot;About us&quot; src=&quot;about1.png&quot; border=&quot;0&quot; onLoad=&quot;&quot; hspace=&quot;60&quot;></a><a href=&quot;contactus.htm&quot; onClick=&quot;MM_nbGroup('down','group1','contact us','contact1.png',0)&quot; onMouseOver=&quot;MM_nbGroup('over','contact us','contact1.png','contact1.png',0)&quot; onMouseOut=&quot;MM_nbGroup('out')&quot;><img name=&quot;contact us&quot; src=&quot;contact1.png&quot; border=&quot;0&quot; onLoad=&quot;&quot;>
</a></div>
</body>
</html>
 
Usually that happens when you call Function B from Function A, but Function B does not exist. Anyway, here's a script which does what I think you're trying to do. Enjoy!
Code:
<script language=&quot;JavaScript1.2&quot;>
<!--
/* I am maximizing myself and there is nothing you can do about it! */
window.moveTo(0,0);
if (document.all) {
  window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers) {
  if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)
  { window.outerHeight = screen.availHeight;window.outerWidth = screen.availWidth; }
}
//-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top