Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:44
PHP alignment
Poster: Dark X Dragon
Dated: Tuesday February 10 2004 - 15:50:03 GMT
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.
Poster: Maz
Dated: Tuesday February 10 2004 - 22:23:22 GMT
I have no idea, but isn't it something like an include and rename the js file php.
maz
Poster: Dark X Dragon
Dated: Sunday February 22 2004 - 12:46:22 GMT
I found out what to do, so I will post it for other people.
Code:
$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>";
$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>";
... and change the main menu to position="relative" and the other menus to position="absolute"