hyster Posted January 10, 2011 Share Posted January 10, 2011 i came across this code while imaging a laptop. i have no idea when it comes to java. error message is. line: 26 char: 2 error: object dosnt support this property or method code: 0 url: file://path/3_1.html <html> <head> <style TYPE="text/css"> <!-- body { background-repeat: no-repeat; background-position: 0 0; } --> </style> <title>System Recovery CD</title> <meta http-equiv="Content-Type" content="text/html"> <script language="JavaScript"> <!-- <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); // --> function recovery() { simple.recovery(); } 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.0 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 && document.getElementById) x=document.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> </head> <Script language="javascript" src="GUI_Desc.js"></script> <body bgcolor="#FFFFFF" text="#000000" background="img/BACKGROUND.BMP" onLoad="MM_preloadImages('img/Button_1.jpg','img/Quick_1.jpg','img/system_1.jpg')" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" scroll="no" style="border:0px"> <div id="Layer1" style="position:absolute; left:10px; top:91px; width:97px; height:56px; z-index:1"><img name="Image7" border="0" src="img/standard_3.jpg" width="97" height="56"></div> <div id="Layer2" style="position:absolute; left:10px; top:191px; width:97px; height:69px; z-index:2"><a href="3_1.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','img/quick_2.jpg',1)"><img name="Image8" border="0" src="img/quick_1.jpg" width="97" height="69"></a></div> <div id="Layer4" style="position:absolute; left:541px; top:449; width:93; height:23; z-index:4"><a href="Home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','img/No_2.bmp',1)"><img name="Image6" border="0" src="img/No_1.bmp" width="93" height="23"></a></div> <div id="Layer5" style="position:absolute; left:442px; top:449px; width:93px; height:23px; z-index:5"><a href="javascript:void(recovery())" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/Yes_2.bmp',1)"><img name="Image5" border="0" src="img/Yes_1.bmp" width="93" height="23"></a></div> <div id="Layer6" style="position:absolute; left:20px; top:155px; width:70px; height:20px; z-index:6"><b><Script language="javascript">document.write(StandardInst)</Script></b></div> <div id="Layer7" style="position:absolute; left:20px; top:265px; width:70px; height:20px; z-index:7"><b><Script language="javascript">document.write(QuickInst)</Script></b></div> <div id="Layer9" style="position:absolute; left:150px; top:130px; width:401px; height:177px; z-index:9"> <p><b><font size="3"><Script language="javascript">document.write(StandardDesc)</Script></font><font size="4"> </font></b></p></div> <object ID="simple" CLASSID="CLSID:DC15E862-0413-11D4-BE48-0060973D1E47"> </object> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/ Share on other sites More sharing options...
trq Posted January 10, 2011 Share Posted January 10, 2011 i have no idea when it comes to java. Lucky this isn't Java then huh? Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/#findComment-1157282 Share on other sites More sharing options...
hyster Posted January 10, 2011 Author Share Posted January 10, 2011 why would it be in java tags if its not java? <script language="JavaScript"> what language is it then so i can get help in the relevent forum. Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/#findComment-1157284 Share on other sites More sharing options...
trq Posted January 10, 2011 Share Posted January 10, 2011 There is a massive and fundamental difference between Java and Javascript. Two completely different and unrelated programming languages. Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/#findComment-1157303 Share on other sites More sharing options...
hyster Posted January 10, 2011 Author Share Posted January 10, 2011 yes i know there is a diffrence between java and javascript hence i put what i thought was javascript in a javascipt HELP section. so because i used java and not javascript you decided to be pedantic. well whoopee you managed to show what? you know everything to do with java? oops i ment javascript. i came here for help not for an idiot to attempt to ridicule me. since your a mod you may as well ban me. Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/#findComment-1157323 Share on other sites More sharing options...
trq Posted January 10, 2011 Share Posted January 10, 2011 since your a mod you may as well ban me. Why on earth would I do that? I was seriously not aware that you knew the difference, hence my comment. You didn't write the code after all. The error is quite straight forward, the simple object does not have a recovery() method. Considering that entire recovery() function appears to do nothing, I would simply comment it out, test then remove it. Quote Link to comment https://forums.phpfreaks.com/topic/223937-function-error/#findComment-1157342 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.