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

i use bgcolor and pagebgcolor but it doesn't work !


Poster: karimspace
Dated: Monday October 27 2003 - 11:05:28 GMT

can u help me please?

i use bgcolor and pagebgcolor but it doesn't work !

with(vertStyle=new mm_style()){
onbgcolor = "#cdc9c9";
oncolor = "#191970";
offbgcolor = "#DBDEE8";
offcolor = "#191970";
bordercolor = "#191970";
borderstyle = "solid";
separatorcolor = "#337EA6";
separatorsize = 0;
separatorpadding=3
padding = 4
borderwidth = 0
overfilter = "Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)"
outfilter = "randomdissolve(duration=0.3)"
fontsize = "8pt";
fontstyle = "normal";
fontfamily = "arial, verdana, tahoma";
fontweight = "bold";
high3dcolor = null;
low3dcolor = null;
pagecolor = "#000000";
pagebgcolor = "#FFFFFF";
subimage = "/images/arrow.gif";


with(milonic=new menuname("mainmenu2")){
screenposition="center"
top="offset=12"
style = horizStyle;
alwaysvisible = 1;
orientation="horizontal"
margin=2
aI("text=By Client;url=javascript:By_Client();");
aI("text=By Portfolio;url=javascript:By_Portfolio();");
}

any ideas ?


Poster: John
Dated: Monday October 27 2003 - 13:58:28 GMT

In what you posted above you have defined vertStyle, but in the menu you are calling horizStyle.


Poster: karimspace
Dated: Tuesday October 28 2003 - 6:28:43 GMT

Thank for your help but i have changed it : vertStyle and i have the same problem :
i use bgcolor and pagebgcolor but it doesn't work !

---------------------------------------------------
| milonic menu |
---------------------------------------------------
| ----------------------------------------------- |
| | | |
| | My IFRAME | |
| | | |
| | | |
| |------------------------------------------------|
|
|---------------------------------------------------

with(vertStyle=new mm_style()){
onbgcolor = "#cdc9c9";
oncolor = "#191970";
offbgcolor = "#DBDEE8";
offcolor = "#191970";
bordercolor = "#191970";
borderstyle = "solid";
separatorcolor = "#337EA6";
separatorsize = 0;
separatorpadding=3
padding = 4
borderwidth = 0
overfilter = "Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)"
outfilter = "randomdissolve(duration=0.3)"
fontsize = "8pt";
fontstyle = "normal";
fontfamily = "arial, verdana, tahoma";
fontweight = "bold";
high3dcolor = null;
low3dcolor = null;
pagecolor = "#000000";
pagebgcolor = "#FFFFFF";
subimage = "/images/arrow.gif";


with(milonic=new menuname("mainmenu2")){
screenposition="center"
top="offset=12"
style = vertStyle;
alwaysvisible = 1;
orientation="horizontal"
margin=2
aI("text=By Client;url=javascript:By_Client();");
aI("text=By Portfolio;url=javascript:By_Portfolio();");
}

any ideas ?

if i choose an item in the menu, the result is displayed in the IFRAME.


Poster: kevin3442
Dated: Tuesday October 28 2003 - 16:34:42 GMT

karimspace wrote:
...i use bgcolor and pagebgcolor but it doesn't work!...

Can you be more specific please... how does it fail? How exactly does it not work... what happens? If you could post a url to an example page, that would be most helpful.

Kevin


Poster: Hergio
Dated: Wednesday October 29 2003 - 13:29:34 GMT

Not sure if your code looks like what you have up here in the forum, but you are not closing your style definition with a }. Its left wide open and then you go right into defining a menu in both occassions that you've posted. Make sure all your syntax is right.


Poster: kevin3442
Dated: Wednesday October 29 2003 - 18:27:25 GMT

Nice catch Dave!

Kevin


Poster: Hergio
Dated: Thursday October 30 2003 - 21:20:43 GMT

I just hope that that is the culprit, we'll see!

sorry for the }


Poster: karimspace
Dated: Friday October 31 2003 - 15:01:07 GMT

with(vertStyle=new mm_style()){
onbgcolor = "#cdc9c9";
oncolor = "#191970";
offbgcolor = "#DBDEE8";
offcolor = "#191970";
bordercolor = "#191970";
borderstyle = "solid";
separatorcolor = "#337EA6";
separatorsize = 0;
separatorpadding=3
padding = 4
borderwidth = 0
overfilter = "Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)"
outfilter = "randomdissolve(duration=0.3)"
fontsize = "8pt";
fontstyle = "normal";
fontfamily = "arial, verdana, tahoma";
fontweight = "bold";
high3dcolor = null;
low3dcolor = null;
pagecolor = "#000000";
pagebgcolor = "#FFFFFF";
subimage = "/images/arrow.gif";
}

with(milonic=new menuname("mainmenu2")){
screenposition="center"
top="offset=12"
style = vertStyle;
alwaysvisible = 1;
orientation="horizontal"
margin=2
aI("text=By Client;url=javascript:By_Client();");
aI("text=By Portfolio;url=javascript:By_Portfolio();");
}

thanks for your help, but it dosen't work !

And i have downloaded a sample witch include the pagebgcolor option, and when i insert it in my page => the same problem : pagebgcolor doesn't work.

i think that i have this problem because i use a iframe, so when i clic an item, i refresh the iframe but not all the page.


Poster: Hergio
Dated: Sunday November 2 2003 - 19:57:23 GMT

Thats exactly it!!! Why didnt you tell us that in the first place!? When you have the menu in the page, and inside that page, there is an iframe and you update the iframe, the pagecolor will NOT work because the page URL is still the same, just the URL of the iframe has changed. There is currently no way to get the menu to update the pagecolor based on this. But I know there is alot of exposed features of the menu that can me manipulated, and maybe a plugin of some sort could be developed down the line that could change the currently hightlghted menuitem in a menu. That way, when you click a link to update an iframe, you could just call a function on a menu, pass in a URL and it will highlight the menuitem inside of it that matches. But not yet, there is ALOT of other stuff to do first...but stick with Milonic, you won't find better! ;)