resolution problem..

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
fatNjazzy
Advanced
Advanced
Posts: 20
Joined: Tue Nov 22, 2005 5:19 pm

resolution problem..

Post by fatNjazzy »

hi here is the main menu, its located inside a table.

Code: Select all

<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>
here is the submenu (inside the head)

Code: Select all

</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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply