vForums Support > Programming & Coding :: Code Requests & Support :: > Wrighty's Affilate Table

Wrighty's Affilate Table - Posted By RuhRoe (mezorro) on 3rd Sep 08 at 8:22pm
I am having a bit of trouble with this code.
Code:
 
  1. <center><script>
  2. /*Lvl 2 Affiliate Table
  3. Created By Wrighty
  4. Don't: Rip, Repost or Claim!*/
  5.  
  6. var affiliates = [
  7. ["http://overdrive.virtualforums.co.uk", "http://img152.imageshack.us/img152/1198/sotwminidw0.gif"],
  8. ["http://affiliatesrus.proboards84.com", "http://i75.photobucket.com/albums/i303/delco/sepav2/BANNER2.jpg"],
  9. ["http://seppyfood.proboards105.com/index.cgi", "http://img127.imageshack.us/img127/2301/seppyfb8831ex4.gif"],
  10. ];
  11.  
  12. document.write('<table border="0" cellSpacing="1" cellPadding="3" class="border" width="500px">');
  13. document.write('<tr><td class="title1">' + document.title.split(/ -/)[0] + '\'s Affiliates');
  14. document.write('</td><;/tr><tr><td class="window1">');
  15.  
  16. for(i=0;i<affiliates.length; i++){
  17.     document.write('<a href="' + affiliates[i][0] + '"><img src="' + affiliates[i][1] + '" border="0"></a>');
  18. }
  19.  
  20. document.write('</td><;/tr></table>');
  21.  
  22. </script></center>
  23.  
 


Global Header
On my forum it shows a <;/tr> on it. The forum is http://themodpark.vforums.co.uk . Any ideas?

Re: Wrighty's Affilate Table - Posted By CåñåÐå™ (canada) on 3rd Sep 08 at 9:40pm
Line 14 there is this -
Code:
 
  1. document.write('</td><;/tr><tr><td class="window1">');
 

change it to this -
Code:
 
  1. document.write('</td></tr><tr><td class="window1">');
 


Line 20 there is this -
Code:
 
  1. document.write('</td><;/tr></table>');
 

change it to this -
Code:
 
  1. document.write('</td></tr></table>');
 


And it will be ok . {Wink}