Læg dit javascript i en seperat fil, og hent den fra hjemmesiden
Tak
Nu virker det meste, jeg forstår bare ikke hvorfor der skulle være nogen forskel på at have scriptet på siden, eller i en separat fil!
Nu får jeg kun tre fejlmeldinger, de ser sådan ud, og jeg forstår dem ikke:
1. # Error Line 23 column 56: there is no attribute "onMouseOver".
...menulink" id="menulink1" onMouseOver="movelinks(1,14)" onMouseOut="movelinki(
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
2. # Error Line 23 column 85: there is no attribute "onMouseOut".
...useOver="movelinks(1,14)" onMouseOut="movelinki(1)" onClick="luk1('forside')"
3. # Error Line 23 column 108: there is no attribute "onClick".
...)" onMouseOut="movelinki(1)" onClick="luk1('forside')">Forside</a><br />
Min kode med DOCTYPE kan findes her:
http://mogsiden.2com.dk/homepages/mogsiden.2Com.dk/%5Ctest/index1.html