Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:44
Milonic code won't validate
Poster: Derek Fielding
Dated: Sunday February 8 2004 - 10:58:38 GMT
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
Poster: Maz
Dated: Sunday February 8 2004 - 11:36:05 GMT
</> 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
code wont validate
Poster: Derek Fielding
Dated: Sunday February 8 2004 - 12:45:47 GMT
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
code wont validate
Poster: Derek Fielding
Dated: Sunday February 8 2004 - 18:03:05 GMT
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