code below with is error:
<script type='text/javascript'>
<!--
// add section to the statistics on the index (member legend)
// code by Stefan
// position for the new section 1-based.
// 1 = before members online (if enabled at ACP), etc
newSectionPosition = 2
// the HTML for the new section's title
newSectionTitle = 'Affiliates'
// the URL for the new section's image
newSectionImage ='http://www.geocities.com/rafeforkbed/nonew.gif'
// the HTML for the new section's content cell
newSectionContent += '<a href="http://www.virgographics.net" target=_blank> <img src="http://www.virgographics.net/images/linkme.gif"alt="Virgo Graphics- Your source for the best graphics on the net!" /></a>'
newSectionContent += '<a
href="http://s6.invisionfree.com/BanditsPlace/index.php?" target="_blank"><img src="http://img7.exs.cx/img7/7104/linkbuttonbandit.gif" alt="Bandit's Web Awards Forum!" /></a>'
e = document.getElementsByTagName('DIV')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'maintitle' && e[n].innerHTML == 'Board Statistics') {
for (tbl = e[n].nextSibling; tbl && tbl.nodeName != 'TABLE'; tbl = tbl.nextSibling);
if (tbl) {
np = (newSectionPosition - 1) * 2
nr = tbl.insertRow(np)
nc = nr.insertCell(-1)
nc.className = 'pformstrip'
nc.innerHTML = newSectionTitle
nc.colSpan = 2
nr = tbl.insertRow(np + 1)
nc = nr.insertCell(-1)
nc.className = 'row2'
nc.innerHTML = '<img src="' + newSectionImage + '" alt="" />'
nc = nr.insertCell(-1)
nc.className = 'row4'
nc.innerHTML = newSectionContent
}
break
}}
// -->
</script>
Something is wrong with the above code, I keep on getting "Unterminated string constant". I am assuming this means I am missing a quote, when I am not.
