5wayshost Posted September 11, 2007 Share Posted September 11, 2007 Racking my brains out on this. I get error viewing via ie. I believe its in the header.tpl file. http://www.webhostdownunder.com/whmcs/index.php Any clues to fix this please? 0 Quote Link to comment Share on other sites More sharing options...
webresellers Posted September 11, 2007 Share Posted September 11, 2007 what happens if you remove this line? onLoad="MM_preloadImages('/home/images/nav_over_01.gif','/home/images/nav_over_02.gif','/home/images/nav_over_03.gif','/home/images/nav_over_04.gif','/home/images/nav_over_05.gif','/home/images/nav_over_06.gif')"> 0 Quote Link to comment Share on other sites More sharing options...
5wayshost Posted September 11, 2007 Author Share Posted September 11, 2007 It works fine until I run the mouse over the top menu images. Then the error appears again. 0 Quote Link to comment Share on other sites More sharing options...
webresellers Posted September 11, 2007 Share Posted September 11, 2007 error free here now.... using IE6 0 Quote Link to comment Share on other sites More sharing options...
5wayshost Posted September 11, 2007 Author Share Posted September 11, 2007 IE Ver 6.0.2900 here with errors. 0 Quote Link to comment Share on other sites More sharing options...
5wayshost Posted September 11, 2007 Author Share Posted September 11, 2007 The roll over images may have to go. Thanks for the heads up. 0 Quote Link to comment Share on other sites More sharing options...
webresellers Posted September 11, 2007 Share Posted September 11, 2007 looks like your "onMouseOver" statements is not 100% http://www.w3schools.com/jsref/jsref_onmouseover.asp 0 Quote Link to comment Share on other sites More sharing options...
5wayshost Posted September 11, 2007 Author Share Posted September 11, 2007 This ie version also brings up errors on the above page. Interesting nevertheless.. 0 Quote Link to comment Share on other sites More sharing options...
JofleyUK Posted September 11, 2007 Share Posted September 11, 2007 just a quick note for ya: Your copyright notice has a "Â" in it. Page encoding, or copy and past it in from word using charmap. 0 Quote Link to comment Share on other sites More sharing options...
generic Posted September 12, 2007 Share Posted September 12, 2007 the issue is your script is trying to call a function that doesnot exist on your web page. you used dreamweaver to create the rollovers, but you did not include the rollover javascript. once you add in that script, the error should disappear. I see its in the rest of your website, but you did not include it in the whmcs template... <script type="text/JavaScript"> <!-- 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_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_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> 0 Quote Link to comment Share on other sites More sharing options...
5wayshost Posted September 12, 2007 Author Share Posted September 12, 2007 when I add the above script into the header.php file the site goes blank. 0 Quote Link to comment Share on other sites More sharing options...
generic Posted September 13, 2007 Share Posted September 13, 2007 use literal tags as described in this post http://forums.whmcs.com/viewtopic.php?t=5864&highlight=literal that will fix it. {literal} {/literal} {literal} <script type="text/JavaScript"> <!-- 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_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_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> {/literal} 0 Quote Link to comment Share on other sites More sharing options...
Weapon Posted March 19, 2008 Share Posted March 19, 2008 Hate to bring back such an old thread but this saved me. Thanks Generic! 0 Quote Link to comment 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.