can anyone find my extra > ?

  mco 19:22 06 Jan 06

I copied and pasted a date onto a site I'm in the middle of building, but somewhere along the line I seem to have acquired an extra > at the beginning...
click here

I've tried looking at the code but I can't see where it is - can any code readers point me in the right direction please?

  Taran 19:52 06 Jan 06

It's in a block of JavaScript:

/*Current date script credit:
JavaScript Kit (click here)
Over 200+ free scripts here!

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("><small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")


You need to change that last document.write line and delete the > just after the bracket and quote mark, like this:


document.write("><small> etc,etc..


document.write("<small> etc,etc..

The rogue tag is just before the opening <small> tag.


  Taran 19:53 06 Jan 06

Just after the month array line:

var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

Sorry - should have perhaps beena little clearer.

  mco 20:10 06 Jan 06

great! Will do asap.

This thread is now locked and can not be replied to.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

Method Studios' title sequence for BBC series Taboo is truly unsettling

Best Pages for iOS tips | How to use Pages for iPad & iPhone: 7 simple tips to get more out of…