Results 1 to 6 of 6

I Need a Little Help With My Header Coding

This is a discussion on I Need a Little Help With My Header Coding within the General Discussion forums, part of the vBulletin SEO Discussion category; After weeks... I have finally figured out the problem with the yellow error box I get on IE. The problem ...

  1. #1
    Senior Member
    Real Name
    james
    Join Date
    Aug 2006
    Posts
    254
    Liked
    0 times

    I Need a Little Help With My Header Coding

    After weeks... I have finally figured out the problem with the yellow error box I get on IE.

    The problem exists in the coding of my header. I had this made by a third party and since I do not know coding I have serious trouble figuring out what is wrong. I managed to fix a little bit here and there but would like to receive some help on this. Here is my coding:

    HTML Code:
    <!-- logo --> <a name="top"></a> <table border="0"  
    width="$stylevar[outertablewidth]" cellpadding="0"  
    cellspacing="0" align="center"> <tr> <td 
    align="$stylevar  [left]" > 
    <link href="styles/style.css" type="text/css" 
    rel="stylesheet"/>
    <script 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>
    </head>
    <body leftmargin="0" topmargin="0" rightmargin="0" 
    bottommargin="0" 
    onLoad="MM_preloadImages('http://www.traderslaboratory.com/forums/images/header/images/pressed_Home.jpg'
    ,'http://www.traderslaboratory.com/forums/images/header/images/pressed_TradersForum.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_PremiumService.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_Register.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_Contact.jpg')">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="http://www.traderslaboratory.com/forums/images/header/images/BG_14.jpg">
      <table width="777" border="0" cellspacing="0" cellpadding="0">
        <tr>
       <td valign="top"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/BG_01.jpg"></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top" align="left"><a href="http://www.traderslaboratory.com" 
    onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Home','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Home.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_home.jpg" 
    name="Link_Home"border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/forums/" 
    onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_TradersForum','',http://www.traderslaboratory.com/forums/images/header/images/pressed_TradersForum.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_traderforum.jpg" name="Link_TradersForum" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/index.php?page=Sponsors" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_PremiumService','','http://www.traderslaboratory.com/forums/images/header/images/pressed_PremiumService.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_PremiumService.jpg" name="Link_PremiumService" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a 
    href="http://www.traderslaboratory.com/forums/register.php" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Register','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Register.jpg',1)"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/LInk_Register.jpg" name="Link_Register" border="0"></a></td>
       <td valign="top"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/forums/sendmessage.php" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Contact','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Contact.jpg',1)"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/LInk_Contact.jpg" name="Link_Contact" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/Interactive_Traders_13.jpg"></td>
        </tr>
      </table>

    Please help me with this.. thank you.

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Can you describe the problem so we can check for that .
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Senior Member
    Real Name
    james
    Join Date
    Aug 2006
    Posts
    254
    Liked
    0 times
    The problem is my website www.traderslaboratory.comm that gives off a yellow error box on the bottom left on IE.

    I tried to find the coding error and i ran a testboard today. The problem exists in the header. I would like to know what part of the coding in the header is causing this. Thanks

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    You can use firefox java script debug mod in order to find what causes that error
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #5
    Senior Member
    Real Name
    james
    Join Date
    Aug 2006
    Posts
    254
    Liked
    0 times
    I tried that and do not know how to fix it. All I know is that its the coding that is causing the error..... :(

  6. #6
    Senior Member
    Real Name
    james
    Join Date
    Aug 2006
    Posts
    254
    Liked
    0 times
    I made some fixes to the coding but still can not seem to figure out whats wrong.

    Please help :(


    HTML Code:
    <!-- logo --> <a name="top"></a> <table border="0"  width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="$stylevar  [left]" > 
    <link href="styles/style.css" type="text/css" rel="stylesheet"/>
    <script 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>
    </head>
    <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" 
    onLoad="MM_preloadImages('http://www.traderslaboratory.com/forums/images/header/images/pressed_Home.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_TradersForum.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_PremiumService.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_Register.jpg','http://www.traderslaboratory.com/forums/images/header/images/pressed_Contact.jpg')">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="http://www.traderslaboratory.com/forums/images/header/images/BG_14.jpg">
      <table width="777" border="0" cellspacing="0" cellpadding="0">
        <tr>
       <td valign="top"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/BG_01.jpg"></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top" align="left"><a href="http://www.traderslaboratory.com" 
    onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Home','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Home.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_home.jpg" 
    name="Link_Home"border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/forums/" 
    onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_TradersForum','','http://www.traderslaboratory.com/forums/images/header/images/pressed_TradersForum.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_traderforum.jpg" name="Link_TradersForum" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/index.php?page=Sponsors" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_PremiumService','','http://www.traderslaboratory.com/forums/images/header/images/pressed_PremiumService.jpg',1)"><img src="http://www.traderslaboratory.com/forums/images/header/images/LInk_PremiumService.jpg" name="Link_PremiumService" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a 
    href="http://www.traderslaboratory.com/forums/register.php" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Register','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Register.jpg',1)"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/LInk_Register.jpg" name="Link_Register" border="0"></a></td>
       <td valign="top"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><a href="http://www.traderslaboratory.com/forums/sendmessage.php" onMouseOut="MM_swapImgRestore()" 
    onMouseOver="MM_swapImage('Link_Contact','','http://www.traderslaboratory.com/forums/images/header/images/pressed_Contact.jpg',1)"><img 
    src="http://www.traderslaboratory.com/forums/images/header/images/LInk_Contact.jpg" name="Link_Contact" border="0"></a></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/BG_02.jpg"></td>
       <td valign="top"><img src="http://www.traderslaboratory.com/forums/images/header/images/Interactive_Traders_13.jpg"></td>
        </tr>
      </table>

Similar Threads

  1. Header Change
    By LPH2005 in forum Template Modifications
    Replies: 0
    Last Post: 10-15-2006, 02:38 PM
  2. Welcome Header
    By offline in forum General Discussion
    Replies: 6
    Last Post: 07-25-2006, 10:48 PM
  3. Unable to add cookies, header already sent
    By rmjvol in forum Troubleshooting
    Replies: 2
    Last Post: 07-20-2006, 12:51 PM
  4. Site map/archive link in header, does it help?
    By dutchbb in forum General Discussion
    Replies: 5
    Last Post: 10-29-2005, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •