Where did my opacity go??

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Trite
Beginner
Beginner
Posts: 8
Joined: Mon Jan 31, 2005 3:28 pm

Where did my opacity go??

Post by Trite »

Where did my opacity go??

I unzipped all the files into the same directory and ran the included menu.html file and there is opacity. When I put this code into my page there is not! None! Also, there is no shadow anymore.

No code regarding these features has been changed and if I run menu.html still everything works fine. What gives? Thanks for the help people!

-Trite
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

We really need to see an example of your page before we can make any comment or fault-finding.

Plus can you tell us which OS and browser and version you are using.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
Trite
Beginner
Beginner
Posts: 8
Joined: Mon Jan 31, 2005 3:28 pm

Post by Trite »

take a look at easternct.edu

Opacity is at 90 percent and shadow is at 5, but they just arent there.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Where did my opacity go??

Post by kevin3442 »

Hi Trite,
Trite wrote:Where did my opacity go??
It's been commented out in your menu_data.js file.
I unzipped all the files into the same directory and ran the included menu.html file and there is opacity. When I put this code into my page there is not! None! Also, there is no shadow anymore.
Opacity, etc. is controlled by the overfilter(s) and outfilter(s) you define in your menu_data.js file. The menu_data.js file in the samle and the one on your site are different. When you upload the updated menu source code, you do not upload the sample menu_data.js file (so as to preserve your own site's menu system). The menu_data.js file in the sample includes the necessary overfilter and outfilter for opacity and shadow. The one on your site does not (because those lines of code are currently commented out).
No code regarding these features has been changed and if I run menu.html still everything works fine. What gives?
It's the difference between running the local sample and running the code on your site: two different menu_data.js files (note again, do NOT upload the samples menu_data.js file, or you'll destroy your site's menu system). The overfilter and outfilter in your menuStyle have been commented out (note the // at the beginning of those lines of code). From the browser's point of view, the code doesn't exist at all. Uncomment those two lines in your menuStyle and your filters will work (in IE5.5+ only).

Cheers,

Kevin
Post Reply