Forum Moderators: open

Message Too Old, No Replies

Error Message

What does it mean?

         

TimmyMagic

11:58 am on Apr 14, 2005 (gmt 0)

10+ Year Member



Hi,

I have redesigned my website. The pages all look fine. However in the bottom left hand corner of the browser (IE) there is an Error symbol. When i click on this it says the following:

Line: 131
Char: 1
Error: Object Expected
Code: 0
URL: [wwWebmasterWorldebsite.com...]

Anyone have any ideas on what this means?

Regards,

Tim

Span

12:32 pm on Apr 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Tim,

your pages have onload, onmouseover and onmouseout JavaScript function calls but those functions are missing. They should be in the head of your pages or in an external .js.

TimmyMagic

1:13 pm on Apr 14, 2005 (gmt 0)

10+ Year Member



Oh right. Thanks for that. Will look into now.

Also, i have another problem which may be related:

I use Dreamweaver and use the templates for the general look of my site. I did over 100 pages using the same template. When i changed a tiny mistake on the template, i.e. an internal link, it screwed up every single page.

Luckily I had backed them up before i did the update, so i have the originals. The problem is i don't want to have to go through each page and change them one by one.

Do you think this error message has anything to do with it?

Span

6:22 pm on Apr 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're missing something like the script block below. Should be in the head of your pages. I have seen that often on sites build with DW.
But I'm not a Dreamweaver user so I don't know what made it disappear.


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

Noob at Design

2:03 am on Apr 15, 2005 (gmt 0)



Hi all . I'm DW user , and I think those codes added in for preloading images . If you make them disappear , some of your image can't be preloaded when the browser render your site . I have asked somebody and I have the same answer : "Only DW understand them"
Thanks for reading this reply!