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:23
resolution problem..
Poster: fatNjazzy
Dated: Tuesday November 29 2005 - 9:58:34 GMT
hi here is the main menu, its located inside a table.
Code:
<td class="cat" valign="middle" >
<SCRIPT TYPE="text/javascript">
with(new menuname("Main Menu")){
style=mainMenuStyle;
alwaysvisible=1;
position="relative";
aI("text=<div><a href=# class=subm><?=$row[$title];?></a></div>;url=contents.php?inside=yes&catid=<?=$row['catid'];?>;target=content");
}
drawMenus();
</SCRIPT>
</td>
<SCRIPT TYPE="text/javascript">
with(new menuname("Main Menu")){
style=mainMenuStyle;
alwaysvisible=1;
position="relative";
aI("text=<div><a href=# class=subm><?=$row[$title];?></a></div>;url=contents.php?inside=yes&catid=<?=$row['catid'];?>;target=content");
}
drawMenus();
</SCRIPT>
</td>
here is the submenu (inside the head)
Code:
</script>
<script type="text/javascript" src="/multilog/menu_data.js"></script>
<script>
with(main=new menuname("submenu")){
style=menuStyle;
<?
include("admin/dbconnections.php");
$query=mysql_query("select * from content")or die(mysql_error());
while($row=mysql_fetch_array($query)):
?>
aI("text=<div align='<?=$align?>'><a href=# class=subm><?=$row[$title]?></a></div>;url=contents.php?inside=yes&contentid=<?=$row['id'];?>;target=content");
<? endwhile;?>
}
</script>
<script type="text/javascript" src="/multilog/menu_data.js"></script>
<script>
with(main=new menuname("submenu")){
style=menuStyle;
<?
include("admin/dbconnections.php");
$query=mysql_query("select * from content")or die(mysql_error());
while($row=mysql_fetch_array($query)):
?>
aI("text=<div align='<?=$align?>'><a href=# class=subm><?=$row[$title]?></a></div>;url=contents.php?inside=yes&contentid=<?=$row['id'];?>;target=content");
<? endwhile;?>
}
</script>
the sub menue location will change its position every time im changing the resolution.
does milonc suport multiple resolutions?
thanks
Poster: Ruth
Dated: Wednesday November 30 2005 - 8:22:54 GMT
Hi,
I don't know anything about php but I know there are submenu position problems when putting the menu in a table if you don't put the call for the program files, milonic_src.js, mmenuns4.js, mmenudom.js and menu_data.js the first thing after the opening body tag. That may be different in php, I don't know.
Ruth