Milonic code won't validate

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Derek Fielding
Super Advanced
Super Advanced
Posts: 30
Joined: Thu Jan 15, 2004 12:20 pm
Location: UK

Milonic code won't validate

Post by Derek Fielding »

When I try to validate my code on http://www.saviour-church.org.uk/index.html
using the "WC3 Mark Up validation Service" I get 2 errors reported.

Line 46, column 73: an attribute specification must start with a name or name token
Line 46, column 27: required attribute "TYPE" not specified

Line 46 is in the "Milonic Menu" script call block as below. NB code lines are not broken on the site.

45: <SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
46: <script language=JavaScript></>if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>"); else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
47: <SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>

Can anyone please tell me why line 46 will not validate

Derek Fielding
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

</> doesn't look right???

<script language="javascript" type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language='JavaScript' src='mmenudom.js'><\/scr"+"ipt>");
</script>

Try this or take a look at an original copy.
You might need paths /menu/mmenuns4.js
maz
User avatar
Derek Fielding
Super Advanced
Super Advanced
Posts: 30
Joined: Thu Jan 15, 2004 12:20 pm
Location: UK

code wont validate

Post by Derek Fielding »

I have copied the script block from a Milonic site page
The result is exactly the same
Any other ideas ?

Derek

http://www.saviour-church.org.uk/index.html
User avatar
Derek Fielding
Super Advanced
Super Advanced
Posts: 30
Joined: Thu Jan 15, 2004 12:20 pm
Location: UK

code wont validate

Post by Derek Fielding »

Maz,

I have tried your own suggested code on http://www.saviour-church.org.uk/index.html and it works fine.

Thanks very much

Derek
Post Reply