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:17
problems with pagecolor and pagebgcolor properties
Poster: UrbanDog
Dated: Tuesday August 26 2003 - 1:41:44 BST
I'm plugging my way through the version 5 menu pages as I set up my menu (which I had working beautifully in ver 3), and am stumped as to why the pagebgcolor and pagecolor properties are not working with my menu. I checked through the forum archives to see if someone else has had and solved this problem, and the closest query I could find was with ver 3 - the solution was to use absolute instead of relative urls in the menu. I tried that and still no luck in having the menu item change color when the page is viewed. Here a snippet of my code, if someone would be so kind (yet again) to troubleshoot:
with(menuStyle=new mm_style()){
onbgcolor="#779577";
oncolor="#ffffff";
offbgcolor="#ffffff";
offcolor="#330000";
bordercolor="#330000";
borderstyle="solid";
borderwidth=1;
separatorcolor="#330000";
separatorsize="1";
padding=3;
fontsize="10";
fontweight="bold";
fontstyle="normal";
fontfamily="Verdana, Arial";
pagecolor="white";
pagebgcolor="#779577";
headercolor="#ffffff";
headerbgcolor="#779577";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
Poster: Maz
Dated: Tuesday August 26 2003 - 9:18:11 BST
I can't see your links, it may be you have url links instead of page links.
I've tried both absolute and relative...
Poster: UrbanDog
Dated: Tuesday August 26 2003 - 14:59:20 BST
I tried both url and page links - neither seem to work. Here is the full script:
with(menuStyle=new mm_style()){
onbgcolor="#779577";
oncolor="#ffffff";
offbgcolor="#ffffff";
offcolor="#330000";
bordercolor="#330000";
borderstyle="solid";
borderwidth=1;
separatorcolor="#330000";
separatorsize="1";
padding=3;
fontsize="10";
fontweight="bold";
fontstyle="normal";
fontfamily="Verdana, Arial";
pagecolor="white";
pagebgcolor="#779577";
headercolor="#ffffff";
headerbgcolor="#779577";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=0;
left=0;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Home url=http://localhost/urbandog.info/home/;status=Back To Home Page;");1
aI("text=Articles url=http://localhost/urbandog.info/Articles/default.asp?iChannel=1&nChannel=Articles;status=urbandog.info articles;");
aI("text=Event Calendar;url=http://localhost/urbandog.info/Events/default.asp?iChannel=5&nChannel=Events;status=urbandog.info event calender;");
aI("text=Classifieds url=http://www.urbandog.info/phpClassifieds/index.php;status=urbanDog.info classifieds;");1
aI("text=Toronto By Dog url=http://localhost/urbandog.info/Businesses/default.asp?iChannel=10&nChannel=Businesses;status=urbandog.info Toronto dog resource directory;");
aI("text=Forums url=http://localhost/urbandog.info/Topics/default.asp?iChannel=9&nChannel=Topics;status=urbandog.info message boards;");
aI("text=Photo Gallery url=http://localhost/urbandog.info/Pictures/default.asp?iChannel=12&nChannel=Pictures;status=urbandog.info photo gallery;");
aI("text=UrbanDog Gear url=http://www.cafepress.com;status=grab your urbandog gear here;");
}
drawMenus();