Proplem with shadow

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Proplem with shadow

Post by pikku-ukko »

Hi,

I use that sample 9. And now I put it verical position.
But IE did'n show that shadow in main menu. Submenus have shadow.
Sample page is in this url: http://www.pikku-ukko.net/te/malli2.htm

I use this: Version 5.1 - Built: Friday March 26 2004 - 17:11

Thanks,
Vuokko
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Vuokko,

The first problm I see is that you have two different menu styles defined in menu_data.js, but both of them are called menuStyle. the only difference I see between the two is that they each have a different pagecolor setting. Try either (1) deleting the menuStyle that you dont want to use or (2) renaming one of them to something different (e.g., menuStyle2, subMenuStyle, etc.).

Let us know if the problem persists after that.

Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think it has to do with it being the position="relative"; If that is removed, the shadow works. But, it's in a table so I don't know if you can remove that. If you take that out and leave the top/left position it moves the menu.

Ruth
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Thanks,

Post by pikku-ukko »

I update my menu versio 9 to Version 5.11 - Built: Monday April 5 2004 - 12:52 and I remove that what Kevin suggest. Now th shadow is all right. But I don't know why the mainmenus links are black?

Vuokko
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Hi,

You are missing a semicolon ; after visitedcolor

maz
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Thanks.

Post by pikku-ukko »

Thanks Maz.
I fix it, but still there is that black color.

~Vuokko
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I think it might be the table.

You have a top & left from the browser edge, but position=relative is from the table, closer to 0 0.

If you don't need it in a table, place to top & left and put the mainmenu back in menu_data.js

Once I mouse over the black it turns blue.

Or try w3 validation of your code, I'm not sure you can use div center in the middle of tables like that. Later on is the menu in the table and it might be a problem.

maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think it might be the visited color, which looks black. You might try making that say gold to check and see if that's it.

Ruth
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

I try to..

Post by pikku-ukko »

Hi Maz,

I try to remove one <div="center">, but still ther is black text. And I remove that top=155; left=200;.
And I validate my test page. W3C validator find only 3 missing alt.

I test older version of menu sample 9, and there is that black text too if menu is verical position.
Still old menu work all right in my page: http://www.pikku-ukko.net/frontpage.shtml

I can't understand what is wrong. :roll:

~Vuokko
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Post by pikku-ukko »

Hi,

Now I change visitedcolor="#f9e8d2"; and submenus shows that allright. Still mainmenu text is first black.

Vuokko
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It is the visitedcolor that is doing it. If you remove that there is no black text. I don't know why but for some reason it seems to override the offcolor when the menu loads until you mouseover it then it works fine.

Ruth
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Thanks :)

Post by pikku-ukko »

Hi,

Many thanks to Kevin, Maz and Ruth. Now colors are good, and I'm happy too.

Best regards,
Vuokko
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Glad it worked, I think Roope looks a little embarassed in that position :P

maz
User avatar
pikku-ukko
Advanced
Advanced
Posts: 21
Joined: Thu Jan 22, 2004 9:31 pm
Location: Finland
Contact:

Hi,

Post by pikku-ukko »

Roope don't like that, I take pictures of him...

Now my site is redy to use. And that menu work fine :D
I test it Opera 7.11, IE 6, Mozilla 1.6 and Firebird 0.8.

Regards,
Vuokko
Post Reply