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

Problem with "pagebgcolor" at frames


Poster: meggamoon
Dated: Sunday September 5 2004 - 23:42:39 BST

Hallo

Sorry for my bad english.
I have a Problem with "pagebgcolor" at frames.

My Config (menu_data.js) :
Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=0;
_subOffsetLeft=-3;



with(style1=new mm_style()){
offcolor="#000000";
offbgcolor="#E6CAA8";
oncolor="#FFFFFF";
onbgcolor="#B96007";
bordercolor="#875536";
borderstyle="solid";
borderwidth=1;
fontsize=10;
fontstyle="normal";
fontweight="normal";
fontfamily="Verdana, Arial";
padding=4;
subimage="Pfeil-rechts-weiss.gif";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorcolor="#875536";
pagebgcolor='#ffff00';
}


with(milonic=new menuname("mainmenu")){
top=14;
left=9;
itemwidth=146;
style=style1;
alwaysvisible=1;
alignment="left";
aI("text=01;url=seite1.htm;status=01;separatorsize=1")
aI("text=02;url=seite2.htm;status=02;separatorsize=1")
}


drawMenus();


(frameset.htm) :
Code:
<html><head></head>

<frameset cols="44%, 56%">
    <frame src="navi.htm" name="navi">
    <frame src="seite1.htm" name="haupt">
</frameset>

</html>


(navi.htm) :
Code:
<html><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>

</head>

<body>
<p>&nbsp;</p>
</body>

</html>


(seite1.htm) :
Code:
<html><head></head>

<body>
<p>&nbsp;<span style="font-size:72pt;">01</span></p>
</body>

</html>


(seite2.htm) :
Code:
<html><head></head>

<body>
<p>&nbsp;<span style="font-size:72pt;">02</span></p>
</body>

</html>



But the "pagebgcolor" it dosent work - please help me !

Thanks
meggamoon


Poster: meggamoon
Dated: Sunday September 5 2004 - 23:47:30 BST

So it works fine :

My Config (menu_data.js) :
Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=0;
_subOffsetLeft=-3;



with(style1=new mm_style()){
offcolor="#000000";
offbgcolor="#E6CAA8";
oncolor="#FFFFFF";
onbgcolor="#B96007";
bordercolor="#875536";
borderstyle="solid";
borderwidth=1;
fontsize=10;
fontstyle="normal";
fontweight="normal";
fontfamily="Verdana, Arial";
padding=4;
subimage="Pfeil-rechts-weiss.gif";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorcolor="#875536";
pagebgcolor='#ffff00';
}


with(milonic=new menuname("mainmenu")){
top=14;
left=9;
itemwidth=146;
style=style1;
alwaysvisible=1;
alignment="left";
aI("text=01;url=seite1.htm;status=01;separatorsize=1")
aI("text=02;url=seite2.htm;status=02;separatorsize=1")
}


drawMenus();


(seite1.htm) :
Code:
<html>
<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>

</head>

<body>
   
<p align="center"><font size="7">01</font></p>

</body>
</html>


(seite2.htm) :
Code:
<html>
<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>

</head>

<body>
   
<p align="center"><font size="7">02</font></p>

</body>
</html>



I dont understand it - please help.

Thanks
meggamoon


Poster: Ruth
Dated: Monday September 6 2004 - 1:44:09 BST

I'm not sure I understand what the problem is. When doesn't the pagebgcolor work?

Ruth


Poster: meggamoon
Dated: Monday September 6 2004 - 2:01:06 BST

It dosend work in my frameset.
And that is it wat i want.

meggamoon


Poster: Ruth
Dated: Monday September 6 2004 - 4:02:41 BST

Are you testing this on your desktop or on the web? I think you might not get the pagebgcolor function if you're just opening it on the desktop, that's never worked for me. It will take some time but I'll try and create your pages as you posted the code and upload them to my site and see what's happening. What menu version are you using? You can find out by opening the milonic_src.js file and you'll see the version number listed at the top of the file.

Ruth


Poster: Ruth
Dated: Monday September 6 2004 - 5:31:25 BST

Hello again,
I think I figured out what you wanted. If you are opening the page in the same frame as the menu, and of course it has a menu on it, then you will get pagebgcolor match. If you are opening it in a different frame and you have the menu on the page you open in that different frame, then you will get pagebgcolor. However, if you are opening the page in a different frame and do not have the menu on it, the menu in the other frame won't show a match because each separate frame is a more or less a 'different' browser, so the menu doesn't know what is happening in that 'different' browser, it can't 'see' the page that is open and won't match it.

Ruth


Poster: meggamoon
Dated: Monday September 6 2004 - 10:46:00 BST

Hallo

I have this Version :
Version 5.0 Release Candidate 22.0 Built: Tuesday November 11 2003 - 11:38

I have uploadet at :
http://www.acmediacom.de/test/

I think it must go with a "onclick"-funktion.
Example :
bgcolor 01 : brown
bgcolor by mouseover 01 : red
bgcolor on click 01 : yellow
and when click on 02 : bgcolor 01 : brown and bgcolor 02 : yellow

much-calibrated with a specially javascript ...


meggamoon[/b]


Poster: Ruth
Dated: Monday September 6 2004 - 19:27:23 BST

Hi Meggamoon,

You are way too far down in level of the menu. Your menu is a beta release. You need to upgrade to the newest version [keep a copy of the old in a separate file until you get the new working as you want] You must be some 100s of levels down from the menu now. We are in final release, out of the beta stange by a good 50 releases at least, plus there were some 30 to 40 other releases from the level you have before we even got out of beta.

The final release is designed to work with iframes which is what most new browsers have built in to replace frames.

As to the pagebgcolor and frames. The only thing I can think of is the possibility of writing a function that says if any item of a parent item is clicked then change the parent item offbgcolor to pagebgcolor. I think that such a function would be involved, or at least would have to have a lot of if/else/or statements. For example, if you got the function if any item of parent 1 is clicked change offbgcolor of parent 1 to pagebgcolor. You still need to have one that says the same thing for all the other parent items, but you also need to have it turn off the pagebgcolor and turn back on the offbgcolor for any parent after a different parent has one of it's items clicked. I'm sorry, I don't know how to do functions, so I don't know if I've explained clearly enough.

You need to upgrade for any more support, the menu has changed so much since your release we couldn't even remember how certain things were done back then.

Ruth