vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Wrighty's Affilate Table - View Topic
Topic Rating: *****
Printable View
RuhRoe
Full Member
***

Posts: 218
Status: Offline
Gender: Male
Age: 31
Joined:  
Reputation: 5%  


pmxfire
Wrighty's Affilate Table (3rd Sep 08 at 8:22pm UTC)
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?
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Wrighty's Affilate Table (3rd Sep 08 at 9:40pm UTC)
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}

Image
click here We have 15 Different Skins/Templates for your vForum
 Printable View

All times are GMT+0 :: The current time is 12:28am
Page generated in 0.1547 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums