PHP alignment

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Dark X Dragon
Beginner
Beginner
Posts: 2
Joined: Tue Feb 10, 2004 4:34 pm

PHP alignment

Post by Dark X Dragon »

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.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I have no idea, but isn't it something like an include and rename the js file php.

maz :|
Dark X Dragon
Beginner
Beginner
Posts: 2
Joined: Tue Feb 10, 2004 4:34 pm

Post by Dark X Dragon »

I found out what to do, so I will post it for other people.

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>";
... and change the main menu to position="relative" and the other menus to position="absolute" :D
Post Reply