1
alienday
Porting a Java Menu into Module
  • 2005/7/29 4:37

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


I am 90% done with module, yet I cannot get my Java Menu (horizontal dropdown) to work. When I add the require mainfile.php, all is okay. When I add the header and footer includes, the Java menu goes to the very top of the XOOPS portal. Any workaround ideas? Below is CoolMenu code. Page is perfect is its own window with only manfile.php.

<?
require( '../../mainfile.php' ) ;
//include( XOOPS_ROOT_PATH.'/header.php' ) ;
//global $xoopsUser;
//$userid = $xoopsUser->uid();
//$username = $xoopsUser->uname();
//$title = "Message";
?>

<html>
<head>
<title>TEST</title>
<!-- Using a linked stylesheet -->
<link rel="STYLESHEET" type="text/css" href="dhtmlcentral.css">
<script language="JavaScript1.2" src="coolmenus4.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
This script can be used freely as long as all copyright messages are
intact.
******************************************************************************/
</script>
<script language="JavaScript1.2" src="cm_addins.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
Coolmenus add-in file for more advanced featuers..
******************************************************************************/
</script>
</head>
<body topmargin=0 marginheight=0>
<script language="JavaScript1.2" src="dhtmlcentral.js">
/*****************************************************************************
Linked js file with all the menucreation code inside
******************************************************************************/
</script>
</body>
</html>

<?
//include( XOOPS_ROOT_PATH.'/footer.php' ) ;
?>

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!