<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Menu_System</title>
<script>
<script type="text/javascript">
function print (sText){
document.writeln(sText);
}function menuLine (){
var sCode =""
sCode += " <table style="border-style: solid; border-color:#ffffff; border-width:5; background:#C5C5C5;" cellspacing="0" cellpadding="0">";
sCode += " <tr>";
sCode += " <td height="1"></td>";
sCode += " </tr>";
sCode += " </table>";
}
einmal kannst du dir die ganze maskiererei sparen aber du musst die schliessenden / maskieren, außderm solltest du sCode auch zurückgeben.
function menuLine (){
return ' <table style="border-style: solid; border-color:#ffffff; border-width:5; background:#C5C5C5;" cellspacing="0" cellpadding="0">'
- ' <tr>'
- ' <td height="1"></td>';
- ' </tr>'
- ' </table>';
}
</script>
<table>
<script>
print(menuLine ());
</script>
</table>
<table>
ist nicht nötig und selbst wenn es fehlen tr und td
</head>
und im head darf das natürlich auch nicht stehen, sondern im body.
Struppi.