Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:50

After putting milonic menu all site is going one line down


Poster: trb
Dated: Sunday October 29 2006 - 8:28:06 GMT

Hello.
Im a little beginner in milonic menus, but try to do my best. I have a problem with menu.
After I put milonic menu into my site all site is going down one line.
See in screenshots.
Before placing menu:
Image

After placing menu (with red marks where is wrong line):
Image

I use relative position and made only a few changes in original code.
I put this menu into a mambo cms site.


Poster: John
Dated: Monday October 30 2006 - 14:07:22 GMT

We're going to need either a URL or the complete code for this site.


Poster: trb
Dated: Wednesday November 1 2006 - 18:40:23 GMT

This is the complete code of index.php from my site.
Code:
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );

$jc_template_path = $mosConfig_live_site.'/templates/jc_feelsafe';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
   

<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="<?php echo $jc_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $jc_template_path;?>/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $jc_template_path;?>/css/verticalmenu.css" rel="stylesheet" type="text/css" />


<script language="javascript" type="text/javascript" src="<?php echo $jc_template_path;?>/js/jc_script.js"></script>
<?php
if ( $my->id ) { initEditor(); }
?>

<?php // Custom MainMenu extension...
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
foreach($mymenu_rows as $mymenu_row) {
   // print_r($mymenu_rows);
   $mymenulink = $mymenu_row->link;
   if ($mymenu_row->type != "url") {
      $mymenulink .= "&Itemid=$mymenu_row->id";
   }
   if ($mymenu_row->type != "separator") {
      $mymenu_content .= "<a href=\"".sefRelToAbs($mymenulink)."\" class=\"images\">$mymenu_row->name</a> = ";
   }
}
$mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2);
?>

</head>
<body>
<a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a>
<div id="p1wrapper">
<div id="wrapper">
<div align="right">
   <table border="0" width="120" id="table1" cellspacing="0" cellpadding="0">
      <tr>
         <td align="right">
         <img border="0" src="http://www.elektro.com/elektro/images/home.jpg" alt="Ustaw stronę startową"></td>
         <td align="right">       </td>
         <td align="right"><a href="http://www.elektro.com/eng">
         <img border="0" src="http://www.elektro.com/elektro/images/engflaga.jpg" alt="english"></a></td>
         <td align="right"><a href="http://www.elektro.com/de">
         <img border="0" src="http://www.elektro.com/elektro/images/niemflaga.jpg" alt="deutsch"></a></td>
      </tr>
   </table>
</div>
   <div id="header">
      </div>
      <div style="clear:both;"></div><div id="headerImg">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
  id="Movie1" width="701" height="189">
  <param name="movie" value="main.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#FFFFFF">
    <embed name="Movie1" src="main.swf"
     quality="high" bgcolor="#FFFFFF" swLiveConnect="true"
     width="701" height="189"
     type="application/x-shockwave-flash"
     pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>               
         </div>
      <div style="clear:both;"></div>
         <div id="searchAndMenu">
            <div id="searchBox">
               <?php mosLoadModules( 'user4', -2);?>
            </div>
            <div id="topMenuBox">
               <?php mosLoadModules( 'user3', -2);?>
            </div>
         </div>
      <div style="clear:both;"></div>
         <div id="wNavContent">
            <div id="leftNav">
            <?php mosLoadModules( 'left', -2);?>
            <?php mosLoadModules( 'right', -2);?>
            </div>
            
            <a name="tocontent" id="tocontent"></a><div id="mainContent">
            <div id="pathway"><?php mosPathWay(); ?></div>
            <?php mosMainBody(); ?>
            </div>
         </div>
      <div style="clear:both;"></div>
      
   <div id="bottomSmall"><?php mosLoadModules( 'user5', -2);?></div>
         
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
  id="Movie1" width="701" height="50">
  <param name="movie" value="Movie2.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#FFFFFF">
    <embed name="Movie1" src="Movie2.swf"
     quality="high" bgcolor="#FFFFFF" swLiveConnect="true"
     width="701" height="50"
     type="application/x-shockwave-flash"
     pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
         
      </div> <div style="copyright"><?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/templates/' . $mainframe->getTemplate() . '/footer.php' ); ?>
      </div>
</div>
</div>
</body>
</html>