hi
i have the following script to run on a page and to produce a drop down menu on a trigger image. Everything works fine with the line
echo \\"<script>document.write(\\'Hello World\\');</script>
however as soon as i take that away the drop down menu stop working??? is there something in there that is letting it work and when i take it away it doesn\\'t. I need to run it in php because i need to pass values from an php array into it that comes from a database. I have tried it without php and it works fine and everything. it just doesn\\'t seem to work without that line...Any idea why???
The code
<head>
<title>Welcome to the Homepage</title>
<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=iso-8859-1\\">
<script language=\\"JavaScript1.2\\" src=\\"fw_menu.js\\"></script>
<?
echo \\"<script>document.write(\\'f\\');</script>\\";
echo \\"<script>function fwLoadMenus() { </script>\\";
echo \\"<script>if(window.fw_menu_0) return;</script>\\";
echo \\"<script>window.fw_menu_0 = new Menu(\\'root\\',78,16,\\'Arial, Helvetica, sans-serif\\',9,\\'#ffffff\\',\\'#ffffff\\',\\'#cc0033\\',\\'#000000\\');</script>\\";
echo \\"<script>fw_menu_0.addMenuItem(\\'News Item 1\\');</script>\\";
echo \\"<script>fw_menu_0.addMenuItem(\\'News Item 2\\');</script>\\";
echo \\"<script>fw_menu_0.hideOnMouseOut=true;</script>\\";
echo \\"<script>fw_menu_0.writeMenus();</script>\\";
echo \\"<script> } </script>\\";
?>
</head>