Script i ekstern fil
Hvordan får jeg nedenstående kodestump i en ekstren fil?jeg vil gerne have det markeret placeret i filen menuen.js
Det hele kan hentes her http://www.kif-atletik.dk/menu.zip
<HTML>
<HEAD>
<SCRIPT language=\"JavaScript\" SRC=\"../script/menukoden.js\"></SCRIPT>
<SCRIPT language=\"JavaScript\" SRC=\"../script/menuen.js\"></SCRIPT>
<style>
<!--
A.menu:link {COLOR: #FFFFFF; TEXT-DECORATION: none}
A.menu:active {COLOR: #FFFFFF; TEXT-DECORATION: none}
A.menu:visited {COLOR: #FFFFFF; TEXT-DECORATION: none}
A.menu:hover {COLOR: #FFFFFF; TEXT-DECORATION: none}
-->
</style>
</HEAD>
<BODY OnLoad=\"initIt()\" style=\"background: red\">
<!-- PLACERES I EKSTERN FIL START -->
<DIV ID=\"elOneParent\" CLASS=parent>
<A HREF=\"#\" onClick=\"expandIt(\'elOne\'); return false\" onfocus=\"this.blur()\" class=\"menu\">
<IMG NAME=\"imEx\" SRC=\"../grafik/triDown.gif\" WIDTH=12 HEIGHT=12 BORDER=0 ALT=\"Vis/Gem undermenu\">
KIF</A></DIV>
<DIV ID=\"elOneChild\" CLASS=child>
<A HREF=\"../kif/hvem_er_vi.html\" class=\"menu\" onfocus=\"this.blur()\">Hvem er vi?</A><BR>
<A HREF=\"../kif/2holdet.html\" class=\"menu\" onfocus=\"this.blur()\">2. holdet</A><BR>
<BR></DIV>
<DIV ID=\"elTwoParent\" CLASS=parent>
<A HREF=\"#\" onClick=\"expandIt(\'elTwo\'); return false\" onfocus=\"this.blur()\" class=\"menu\">
<IMG NAME=\"imEx\" SRC=\"../grafik/triDown.gif\" WIDTH=12 HEIGHT=12 BORDER=0 ALT=\"Vis/Gem undermenu\">
Nyheder</A></DIV>
<DIV ID=\"elTwoChild\" CLASS=child>
<A HREF=\"../nyheder/nyheder.html\" class=\"menu\" onfocus=\"this.blur()\">Sidste nyt</A><BR>
<A HREF=\"../nyheder/nyheder_arkiv.html\" class=\"menu\" onfocus=\"this.blur()\">Ældre nyheder</A><BR>
<BR></DIV>
<SCRIPT LANGUAGE=\"JavaScript1.2\">
if (NS4) {
firstEl = \"elOneParent\";
firstInd = getIndex(firstEl);
showAll();
arrange();
}
</SCRIPT>
<!-- PLACERES I EKSTERN FIL STOP -->
</BODY>
</HTML>