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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error on page

Status
Not open for further replies.

redwatty

IS-IT--Management
Aug 3, 2001
46
GB
Hi everyone,

It's me again.

I have published a website and on everypage except the homepage I get the error on page warning. When I have checked the details it appears to have something to do with preloading images that make up the rollover images in the navigation section on the left of the page. This naviagation is part of a template.

The error I get when I view the following page is this


Line: 8
Char: 1
Error: Object expected
Code: 0
URL:


If it would be usefull I will paste the code for this particular page. I have created the page purley through UD, I'm not much of a hard coder!

<html><!-- #BeginTemplate &quot;/Templates/get start.dwt&quot; -->
<head>
<!-- #BeginEditable &quot;doctitle&quot; -->
<title>..:::: TMSDI Ltd - Support Site ::::..</title>
<!-- #EndEditable -->
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>
<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; onLoad=&quot;MM_preloadImages('../images/search2.gif','../images/contact2.gif','../images/home2.gif','../images/back2.gif','../images/top_button2.gif','../images/getting_started2.gif','../images/faq%27s2.gif','../images/upgrade2.gif','../images/download2.gif','../images/sys_require2.gif','../images/about%20us2.gif','../images/news2.gif','../images/e-question2.gif','../images/online2.gif')&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;100%&quot;>
<tr>
<td valign=&quot;top&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;51&quot;>
<tr>
<td width=&quot;11%&quot; height=&quot;33&quot; valign=&quot;top&quot;><img src=&quot;../images/small_logo.gif&quot; width=&quot;142&quot; height=&quot;56&quot;></td>
<td width=&quot;89%&quot; height=&quot;33&quot; valign=&quot;top&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;38&quot; background=&quot;../images/get_start_bg.gif&quot;>
<tr>
<td valign=&quot;top&quot; height=&quot;8&quot; colspan=&quot;3&quot;><img src=&quot;../images/top1.gif&quot; width=&quot;498&quot; height=&quot;10&quot;></td>
<td rowspan=&quot;3&quot; width=&quot;34%&quot;> </td>
<td rowspan=&quot;3&quot; width=&quot;5%&quot; valign=&quot;top&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td height=&quot;10&quot;><img src=&quot;../images/blue_pixel.gif&quot; width=&quot;2&quot; height=&quot;10&quot;></td>
</tr>
<tr>
<td height=&quot;20&quot;><a href=&quot;../index.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('home','','../images/home2.gif',1)&quot;><img name=&quot;home&quot; border=&quot;0&quot; src=&quot;../images/home1.gif&quot; width=&quot;60&quot; height=&quot;17&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=&quot;6%&quot; height=&quot;21&quot; valign=&quot;middle&quot;><a href=&quot;../search/search_default.asp&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('search','','../images/search2.gif',1)&quot;><img name=&quot;search&quot; border=&quot;0&quot; src=&quot;../images/search1.gif&quot; width=&quot;70&quot; height=&quot;17&quot;></a></td>
<td width=&quot;24%&quot; height=&quot;21&quot; valign=&quot;middle&quot;><a href=&quot;../contact.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('contact ','','../images/contact2.gif',1)&quot;><img name=&quot;contact &quot; border=&quot;0&quot; src=&quot;../images/contact1.gif&quot; width=&quot;70&quot; height=&quot;17&quot;></a></td>
<td width=&quot;31%&quot; height=&quot;21&quot; valign=&quot;bottom&quot;> </td>
</tr>
<tr>
<td height=&quot;26&quot; valign=&quot;top&quot; colspan=&quot;3&quot;><img src=&quot;../images/get_start_bar.gif&quot; width=&quot;498&quot; height=&quot;25&quot;></td>
</tr>
</table>
</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot; height=&quot;238&quot;>
<tr>
<td height=&quot;254&quot; valign=&quot;top&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot;>
<tr>
<td><img src=&quot;../images/topanim.gif&quot; width=&quot;142&quot; height=&quot;20&quot;></td>
</tr>
<tr>
<td><a href=&quot;getting%20started_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('get start','','../images/getting_started2.gif',1)&quot;><img name=&quot;get start&quot; border=&quot;0&quot; src=&quot;../images/getting_started1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../faq%27s/faq%27s_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('faq','','../images/faq%27s2.gif',1)&quot;><img name=&quot;faq&quot; border=&quot;0&quot; src=&quot;../images/faq%27s1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../upgrading%20software/upgrading%20software_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('upgrade','','../images/upgrade2.gif',1)&quot;><img name=&quot;upgrade&quot; border=&quot;0&quot; src=&quot;../images/upgrade1.gif&quot; width=&quot;142&quot; height=&quot;25&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../downloads/downloads_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('download','','../images/download2.gif',1)&quot;><img name=&quot;download&quot; border=&quot;0&quot; src=&quot;../images/download1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../e-questionnaires/e-questionnaires_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('e-ques','','../images/e-question2.gif',1)&quot;><img name=&quot;e-ques&quot; border=&quot;0&quot; src=&quot;../images/e-question1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../online%20questionnaires/online%20questionnaires_default.asp&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('online','','../images/online2.gif',1)&quot;><img name=&quot;online&quot; border=&quot;0&quot; src=&quot;../images/online1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../system%20requirements/system%20requirements_default.asp&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('sys require','','../images/sys_require2.gif',1)&quot;><img name=&quot;sys require&quot; border=&quot;0&quot; src=&quot;../images/sys_require1.gif&quot; width=&quot;142&quot; height=&quot;25&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../about%20us/about_us_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('about','','../images/about%20us2.gif',1)&quot;><img name=&quot;about&quot; border=&quot;0&quot; src=&quot;../images/about%20us1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><a href=&quot;../news/news_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('news','','../images/news2.gif',1)&quot;><img name=&quot;news&quot; border=&quot;0&quot; src=&quot;../images/news1.gif&quot; width=&quot;142&quot; height=&quot;15&quot;></a></td>
</tr>
<tr>
<td><img src=&quot;../images/get%20start%20menubar.gif&quot; width=&quot;142&quot; height=&quot;20&quot;></td>
</tr>
<tr>
<td><img src=&quot;../images/bottomanim.gif&quot; width=&quot;142&quot; height=&quot;19&quot;></td>
</tr>
</table>
</td>
<td width=&quot;89%&quot; valign=&quot;top&quot; height=&quot;254&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot;>
<tr>
<td width=&quot;13%&quot;><img src=&quot;../images/get%20start%20title.gif&quot; width=&quot;276&quot; height=&quot;33&quot;></td>
<td width=&quot;87%&quot;> </td>
</tr>
</table>
<!-- #BeginEditable &quot;main&quot; -->
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;30&quot;>
<tr>
<td width=&quot;5%&quot;> </td>
<td width=&quot;90%&quot;> </td>
<td width=&quot;5%&quot;> </td>
</tr>
<tr>
<td width=&quot;5%&quot; height=&quot;642&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;></font></td>
<td width=&quot;90%&quot; valign=&quot;top&quot; height=&quot;642&quot;>
<p><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;>If
you have just received your new Team Management Profile software
you may need some assistance installing and using the software
for the first time. If you already have the software and have
received an update, please <a href=&quot;../upgrading%20software/upgrading%20software_default.htm&quot;style=&quot;text-decoration:none&quot;><font color=&quot;#339933&quot;>click
here</font></a> to be taken to the upgrading section of the
site.<br>
<br>
The package you have received contains everything you will
need to install, run and use the Team Management Profile software,
including a hard copy of the software manual. In addition
once the software has been installed you will be able to access
a comprehensive, step by step, PDF version of the TMP Software
manual.<br>
</font><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><br>
*Before beginning the installation please visit the <a href=&quot;../system%20requirements/system%20requirements_default.asp&quot; style=&quot;text-decoration:none&quot;><font color=&quot;#CC9900&quot;>TMS
Software System Requirements</font></a>, section to ensure
that you are running the program on a compatible system. There
are also some operating system specific issues that you will
need to check, if you are to successfully install the software.<br>
<br>
<b><font size=&quot;3&quot;>Quick Start Set-Up Guide</font></b><br>
<br>
To download a printer friendly version of the the Quick Start
Guide <a href=&quot;../downloads/English%20V6.xx%20Software%20quick%20start%20manual.doc&quot;>click
here</a>.<br>
<br>
To watch a short flash demo click on the play button. <br>
<br>
</font> </p>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td rowspan=&quot;3&quot; width=&quot;13%&quot;> </td>
<td width=&quot;71%&quot;> </td>
<td rowspan=&quot;3&quot; width=&quot;16%&quot;> </td>
</tr>
<tr>
<td width=&quot;71%&quot;><object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;600&quot; height=&quot;450&quot;>
<param name=movie value=&quot;../flash/getting%20started.swf&quot;>
<param name=quality value=high>
<embed src=&quot;../flash/getting%20started.swf&quot; quality=high pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;600&quot; height=&quot;450&quot;>
</embed>
</object></td>
</tr>
<tr>
<td width=&quot;71%&quot;> </td>
</tr>
</table>
<font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;>
<br>
</font></td>
<td width=&quot;5%&quot; height=&quot;642&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;></font></td>
</tr>
<tr>
<td width=&quot;5%&quot;> </td>
<td width=&quot;90%&quot;> </td>
<td width=&quot;5%&quot;> </td>
</tr>
</table>
<br>
<!-- #EndEditable --><br>
</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;8&quot;>
<tr>
<td bgcolor=&quot;#00309C&quot; width=&quot;4%&quot; valign=&quot;top&quot; height=&quot;2&quot;><a href=&quot;javascript:history.go(-1)&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('back','','../images/back2.gif',1)&quot;><img name=&quot;back&quot; border=&quot;0&quot; src=&quot;../images/back1.gif&quot; width=&quot;50&quot; height=&quot;20&quot;></a></td>
<td bgcolor=&quot;#00309C&quot; width=&quot;9%&quot; height=&quot;2&quot;> </td>
<td bgcolor=&quot;#00309C&quot; width=&quot;83%&quot; valign=&quot;middle&quot; align=&quot;center&quot; height=&quot;2&quot;><b><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot; color=&quot;#FFFFFF&quot;>If
you would prefer to talk to someone, please call +44 (0)1904 464526
Mon - Fri 9am - 5pm</font></b></td>
<td bgcolor=&quot;#00309C&quot; width=&quot;4%&quot; valign=&quot;top&quot; height=&quot;2&quot;><a href=&quot;getting%20started_default.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('top','','../images/top_button2.gif',1)&quot;><img name=&quot;top&quot; border=&quot;0&quot; src=&quot;../images/top_button1.gif&quot; width=&quot;50&quot; height=&quot;20&quot;></a></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</body>
<!-- #EndTemplate --></html>


Any ideas?

Cheers

Red

&quot;Just because I don't care doesn't mean I don't understand&quot;

Homer J Simpson
 
It may be a missing image, or the fact that your calling MM_preloadImages & defining the parameters alltogether? I'm not a script expert myself LOL

Other than that just a quick pointer, dont use spaces in any file names html or images. The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
The problem is you do not declare MM_preloadimages anywhere.

This will be a bit tough, but try to paste this inside your <head> </head> tags.

<Script Language=&quot;Javascript&quot;>
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(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
</script> &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Dohhh sometimes it is obvious when someone else looks LOL The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
lol I had to pull up one of my pages to compare &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top