PDA

View Full Version : Resolved HV Menu color issue switching form asp to php



willblack
02-02-2015, 06:18 AM
1) Script Title: HV Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

3) Describe problem:
I installed HV Menu years ago on a site with classic ASP scripting, and it works fine.

I am rewriting the site to move to php scripting. The home page is the same except that the asp scripts have been changed to php scripts. The scripts do NOT call the menu. Now the colors for the fonts and hovering change on mouse-over, but do not revert back to normal when no longer hovering. Also, font colors in general do not appear to be read from the menu file. Host server changed from Windows to Linux. The .js scripts have not changed between sites.

Working copy is here: www.amcw.org.
Non-working version is here: www.amcw.net

Any ideas why the functionality would change?

molendijk
02-02-2015, 10:35 AM
I had a quick look at exmplmenu_var.js of both versions. They contain the following errors:


var HighBgColor='0099CC'; // Background color when mouse is over
var HighSubBgColor='0099CC'; // Background color when mouse is over on subs

should be:


var HighBgColor='#0099CC'; // Background color when mouse is over
var HighSubBgColor='#0099CC'; // Background color when mouse is over on subs

and


var FontLowColor='444488'; // Font color when mouse is not over
var FontSubLowColor='444488'; // Font color subs when mouse is not over

should be:


var FontLowColor='#444488'; // Font color when mouse is not over
var FontSubLowColor='#444488'; // Font color subs when mouse is not over

I don't know why the errors in one of your versions don't affect the colors, while they do in the other version.

Anyhow, try to correct the errors and see what happens.

willblack
02-02-2015, 02:18 PM
I can't believe I missed that. Must have been looking at it too long. Thank you! That fixed it.