PDA

View Full Version : Validator not liking JS


Whizzkid
04-28-2006, 08:54 PM
<script type="text/javascript">
var tickercontent=new Array()
tickercontent[0]='<a href="http://www.tinypricedesigns.co.uk/djstylus/upcomingevents.htm">Upcoming Events</a><br /><br />Summer Rave at Pulse Nightclub. Please click for details. '
tickercontent[1]='<a href="http://www.tinypricedesigns.co.uk/djstylus/profile.htm">Profile Page</a><br /><br />Recently been updated with all things new about DJ Stylus. Check it out!'
tickercontent[2]='<a href="http://www.tinypricedesigns.co.uk/djstylus/index.htm">My New Website</a><br /><br />Incase you hadn`t noticed I have a website. <a href="http://www.djstylus.co.uk">www.djstylus.co.uk</a>. Enjoy!'
tickercontent[3]='<a href="http://www.tinypricedesigns.co.uk/djstylus/index.htm#">The News Ticker</a><br /><br />This is, from now on where all the breaking stories will be anounced, and a quicklink will be active.'
</script>
<script type="text/javascript">

This is the code that can be found at www.tinypricedesigns.co.uk/djstylus/index.htm

The validator seems to think <a> is not there to close!

And also below this it seems to think divs are not there to close when they are?

Any one got any ideas?
If so solutions would be very much appreciated!

Thnx in advance

coothead
04-29-2006, 12:33 AM
Hi there Whizzkid,

the end tags for 'a' and 'div' need to be escaped thus...

<\/a> and <\/div>

...and then you need to add...

alt=""

...to all the 'img' tags.

This will then leave you with one error, which can only be resolved by its non-use. :D
The 'marquee' is a vendor proprietary extension and therefore not recognised.