croniccoder
08-25-2006, 03:41 PM
document.write += ('<a href="'+ ads[adNumber].href +'" \n')
document.write += ('onMouseOver="status=\''+ ads[adNumber].mouseover +'\';return true" \n')
document.write += ('onMouseOut="status=\'\'"> \n')
document.write += ('<img src="' + ads[adNumber].src + '" width=' + ads[adNumber].width)
document.write += (' onLoad="setTimeout(\'newAd();\',' + refreshTime + ');"')
document.write += ('\n height=' + ads[adNumber].height + ' border=0 >')
document.write += ('</a>')
Can anyone possibly see a problem with the syntax of the above code?
The setTimeout function is never run so something is wrong with the syntax.
document.write += ('onMouseOver="status=\''+ ads[adNumber].mouseover +'\';return true" \n')
document.write += ('onMouseOut="status=\'\'"> \n')
document.write += ('<img src="' + ads[adNumber].src + '" width=' + ads[adNumber].width)
document.write += (' onLoad="setTimeout(\'newAd();\',' + refreshTime + ');"')
document.write += ('\n height=' + ads[adNumber].height + ' border=0 >')
document.write += ('</a>')
Can anyone possibly see a problem with the syntax of the above code?
The setTimeout function is never run so something is wrong with the syntax.