I am currently using a web portal called OCS2Nuke, which is part of the PHPNuke family.
I have your menu on my site at the moment but it is towards one side.
I would like to put it in a PHP block, I have been trying to do the table method but it just seriously messes up the layout because of the HTML tags (<html>, <body> and <Head>).
Could you give me a code that could fix it in a block please, thanks in advance.
I can convert HTML to PHP no problem, if you cant find a way that works in PHP, it's alright if you find a way without the tags.
PHP alignment
-
- Beginner
- Posts: 2
- Joined: Tue Feb 10, 2004 4:34 pm
I found out what to do, so I will post it for other people.
... and change the main menu to position="relative" and the other menus to position="absolute" 
Code: Select all
$content = "<table>";
$content .= "<tr>";
$content .= "<td>";
$content .= "<div align=\"center\">";
$content .= "";
$content .= "";
$content .= "<SCRIPT language=JavaScript src=\"milonic_src.js\" type=text/javascript></SCRIPT> ";
$content .= " <script language=JavaScript>";
$content .= " if(ns4)_d.write(\"<scr\"+\"ipt language=JavaScript src=mmenuns4.js><\\/scr\"+\"ipt>\"); ";
$content .= " else _d.write(\"<scr\"+\"ipt language=JavaScript src=mmenudom.js><\\/scr\"+\"ipt>\"); ";
$content .= " </script>";
$content .= " <SCRIPT language=JavaScript src=\"menu_data.js\" type=text/javascript></SCRIPT>";
$content .= "";
$content .= "</div>";
$content .= "</td>";
$content .= "</tr>";
$content .= "</table>";
