Hallo. Ich schaffe es nicht, diesen Code extern mit document.write("..."); zu schreiben. Es kommen nur Fehlermeldungen im IE. Könnt ihr mal den ganzen Code posten, den ich dann in die EXterne Datei einfügen kann. Hier ist der Quelltext:
<DIV ID="topm">
<SCRIPT LANGUAGE="JavaScript">
<!--
context = new setMenuPanel(140,"#CCCCCC","DevContext (c) 2001 Devshare.de");
context.setMenu("Zurück","menuback","Hallo ...","javascript:history.back()","#CFD6E8","#CCCCCC");
context.setMenu("Vorwärts","menuforward","Ja ...","javascript:history.forward()","#CFD6E8","#CCCCCC");
context.setMenu();
context.setMenu("Zu Favoriten hinzufügen...","menufavorite","Hallo ...","javascript:alert('Nix da! Das musst Du schon mit Hand machen :-)')","#CFD6E8","#CCCCCC");
context.setMenu("Aktualisieren","menurefresh","Ja ...","javascript:location.reload()","#CFD6E8","#CCCCCC");
context.setMenu();
context.setMenu("Quelltext anzeigen","menusource","Nummer 3","javascript:void(location='view-source:'+window.location.href)","#CFD6E8","#CCCCCC");
context.setMenu("Drucken","menuprint","3","javascript:window.print()","#CFD6E8","#CCCCCC");
document.write( context.printMenuPanel() ); // w/Netscape
//-->
</SCRIPT>
</DIV>
<DIV ID="waitDiv" style="position:absolute;left:40%;top:40%;visibility:hidden"><center><table cellpadding=6 border=0 ><tr><td align=center></center>
<center><img src="wait.gif" width=360px" height="120px border="0" width="200" height="20"></center><br>
</td></tr></table></center></DIV> <SCRIPT> <!--
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name) { if (document.getElementById) { return document.getElementById(name).style; } else if (document.all) { return document.all[name].style;
} else if (document.layers) { return document.layers[name]; } } function ap_showWaitMessage(div,flag) { if (!DHTML) return; var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById) if(document.layers) x.left=280/2; return true; } ap_showWaitMessage('waitDiv', 1);
//-->
</SCRIPT>