Add another line at the end before the </script> with just a }. Your last } closes the else statement, you need to close the script. On 2/4/01 at 1:38 PM, mpgalvin at eircom.net (Michael Galvin) wrote: > if (ad==6) { > document.write ('<a > href=\"http://www.dooyoo.co.uk/servlets/Item2Connector?template=item&session > ID=&itemID=10733&sponsor=122870\" target=\"_top\"><img > src=\"http://www.dooyoo.co.uk/pix/banners/DYbutton.gif\" > border=\"0\"></a>'); > } > else { > document.write('<center>'); > document.write('<a href=\"' + url + '\" target=\"_top\">'); > document.write('<img src="' + banner + '"'); > document.write('alt=\"click here!\" height="60" border=0></a> '); > } > </SCRIPT> > > but when I run it, I get an error on the second-last line, the one > containing > > } > > all on its own. The error is "Syntax Error" which is obviously a lot of > use. This was running fine before I added some more if statements.