Doin' my head in... closeonclick & unsupported framecode

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Kevin@Kasper
Beginner
Beginner
Posts: 7
Joined: Tue Feb 24, 2004 10:54 am
Location: Belgium
Contact:

Doin' my head in... closeonclick & unsupported framecode

Post by Kevin@Kasper »

Hi all!

I'm having a "big" problem with the unsupported framecode where none of the functions I use to close the submenu on click works...

Let me explain my situation/setup:

site url: http://www.connections.be/nl/index_v7.shtml
- site is divided in frames (can't change that ) so i'm using the unsupported code posted here on the forum
- leftframe = mainmenu
- mainFrame = an (100%) Iframe which contains the contentpages (needed to let the menu work when there is a page in our frame which isn't hosted by us)


this is my main menu data file
this is my submenu data file which is implented in the iframe

I've tried everything.... closeonclick in the individual menu item properties, closeonclick in the submenu style properties, through a closefunction (Submenuclose) which gets activated with the 'clickfunction' or with the document.onclick in the iframe file

code for the iframe file:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
iframe {
	border: 0px none #FFFFFF;
}
-->
</style>

</head>

<body><SCRIPT language="JavaScript" src="/scripts/v7_menu/milonic_src.js" type="text/javascript"></SCRIPT>	
<script	language="JavaScript" type="text/JavaScript">
if(ns4)_d.write("<scr"+"ipt language='JavaScript' src='\/scripts\/v7_menu\/mmenuns4.js'><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt language='JavaScript' src='\/scripts\/v7_menu\/mmenudom.js'><\/scr"+"ipt>"); 
</script><SCRIPT language="JavaScript" src="/scripts/v7_menu/menu_data_subs_nl.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="/scripts/v7_menu/divhider.js" type="text/javascript">
</SCRIPT>
<SCRIPT language="javascript" type="text/Javascript">
// document.onClick = "parent.frames['mainIFrame'].popdown();"
</SCRIPT>	
<div id="div1" style="position:relative" align="right"><iframe src="navigation/main_v7_nl.shtml" name="mainFrame" width="592" marginwidth="0" height="100%" marginheight="0" scrolling="auto" frameborder="0" hspace="0" vspace="0" id="mainFrame">Your 
browser does not support Iframes, please upgrade to view this site correctly</iframe></div>

</body>
</html>
is there anyone who could help me on this? I've already lost lotz of hours on this menu and I really need to get it working now so any suggestions are HIGHLY appreciated! thanks in advance!
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Just a quick thought. Instead of calling popdown() in the frame containing your submenus, try calling closeAllMenus(). Worth a try...

Kevin
Kevin@Kasper
Beginner
Beginner
Posts: 7
Joined: Tue Feb 24, 2004 10:54 am
Location: Belgium
Contact:

Post by Kevin@Kasper »

doesn't work neither :(
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've never used frames and not good at java, so I'll throw out some observations incase anyone knows.

Assuming I'm looking at the correct menu on the left side.

I don't understand why you have 2 menu data files. Probably you shouldn't repeat styles for the same menu.

You have js or flash type change effect up against the menu, that is causing the submenus to act irrational, its not a good idea to place the 2 so close to each other. Some browsers can't handle it.

Regards,
maz
Kevin@Kasper
Beginner
Beginner
Posts: 7
Joined: Tue Feb 24, 2004 10:54 am
Location: Belgium
Contact:

Post by Kevin@Kasper »

maz wrote:I've never used frames and not good at java, so I'll throw out some observations incase anyone knows.

Assuming I'm looking at the correct menu on the left side.

I don't understand why you have 2 menu data files. Probably you shouldn't repeat styles for the same menu.
2 frames = 2 data files ... one for the main file and one for the subs
maz wrote:You have js or flash type change effect up against the menu, that is causing the submenus to act irrational, its not a good idea to place the 2 so close to each other. Some browsers can't handle it.
I'm not sure what you mean by this?
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 think I see, so the submenus are not actually joined to the main menu, but are sitting on top of moving images, can you try moving or removing "Promotions of the week" because I think its causing problems with your submenu.

maz
Kevin@Kasper
Beginner
Beginner
Posts: 7
Joined: Tue Feb 24, 2004 10:54 am
Location: Belgium
Contact:

Post by Kevin@Kasper »

nope same behavior .... submenus don't want to close :(
Post Reply