Proplem with W3C

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Proplem with W3C

Post by pikku-ukko »

Hi, agen...

I just want to validate my site with w3c validator.
This is sample of my finnish site front page: http://www.pikku-ukko.net/te/etusivu.php

And that validatof find one error: Line 62, column 8: end tag for element "SCRIPT" which is not open.

45: <SCRIPT type=text/javascript>with(milonic=new menuname("Main Menu")){
46: style=menuStyle;
47: top=155;
48: left=200;
49: alwaysvisible=1;
50: orientation="horizontal";
51: position="relative";
52: aI("text=Alkuun;url=http://www.pikku-ukko.net/;showmenu=alk ... s=Takaisin Etusivulle;");
53: aI("text=Roope;showmenu=Roope;");
54: aI("text=Rotu;showmenu=Rotu;");
55: aI("text=Yhteys;showmenu=Yhteys;");
56: aI("text=Vieraskirja;showmenu=Vieras;");
57: aI("text=Linkit;showmenu=Linkit;");
58: aI("text=Sekalaista;showmenu=Seka;");
59: aI("text=Sivuista;showmenu=Sivut;itemwidth=70;");
60: }
61: drawMenus();
62: </SCRIPT>

That is the Milonic menu code. I use sample no 9.

What is wrong? Can some one help me, please :?:

Thanks,

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

Post by Maz »

Validation may require ""

<SCRIPT type="text/javascript">

If you are using 5.1 there may be a css conflict as far as I can tell.

Regards,
maz
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Post by pikku-ukko »

Thanks Maz!

I use this version Milonic menu: Version 5.0 Final Built: Monday February 9 2004 - 12:08

Best Regards,
Vuokko
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The validator gave you error messages on exactly what was wrong. What did those messages say?
John
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Post by pikku-ukko »

Hi!

First that validator tells that type is missing. Then I just add that type=text/javascript . I copy and paste that in Menu Sample 9 page...

Then validator say: Line 62, column 8: end tag for element "SCRIPT" which is not open.

I did not think that missing " is the proplem...


~Vuokko
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

<SCRIPT type=text/javascript>
The problem could be here, since the script language is not specified in the tag. Try:

Code: Select all

<SCRIPT language="javascript" type="text/javascript">
Kevin
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Post by pikku-ukko »

Hi,

I only add this " and then the Validatot acept my code.
Like this: <SCRIPT type="text/javascript">.
That is Maz idea:)

Sorry, my english is not so good. I live in Finland an speak finnish...

~Vuokko
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Your English is just fine. No apology necessary.
John
Post Reply