Page 1 of 1 [ 3 posts ] 

alex
Developer
Developer

User avatar

Joined: 13 Jun 2004
Age: 38
Gender: Male
Posts: 10,216
Location: Beverly Hills, CA

21 Nov 2005, 4:55 pm

I need a javascript programmer to tell me why the new menu works in all browsers except for internet explorer. Anyone here think they're up to the challenge? if so, please respond to this thread.


_________________
I'm Alex Plank, the founder of Wrong Planet. Follow me (Alex Plank) on Blue Sky: https://bsky.app/profile/alexplank.bsky.social


Shoe
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 3 Nov 2005
Gender: Male
Posts: 52
Location: Spokane, WA

21 Nov 2005, 6:00 pm

Well.. there's a javascript error on this line in DropDownMenu1.js:

nodes[i].style.width = (maxWidth - parseInt(nodes[i].currentStyle.paddingLeft) - parseInt(nodes[i].currentStyle.paddingRight)) + "px";


It's failing because maxWidth is zero and it doesn't seem to want to set that value to a negative number. I tried modifying that line on a local copy of the file and it the menu still didn't quite work right but it was closer. Perhaps it has something to do with not setting up the variable values properly.

I'll have more time tonight if you need more help. There's so many functions it would take me a while to figure out how it's supposed to work.



alex
Developer
Developer

User avatar

Joined: 13 Jun 2004
Age: 38
Gender: Male
Posts: 10,216
Location: Beverly Hills, CA

21 Nov 2005, 6:01 pm

Shoe wrote:
Well.. there's a javascript error on this line in DropDownMenu1.js:

nodes[i].style.width = (maxWidth - parseInt(nodes[i].currentStyle.paddingLeft) - parseInt(nodes[i].currentStyle.paddingRight)) + "px";


It's failing because maxWidth is zero and it doesn't seem to want to set that value to a negative number. I tried modifying that line on a local copy of the file and it the menu still didn't quite work right but it was closer. Perhaps it has something to do with not setting up the variable values properly.

I'll have more time tonight if you need more help. There's so many functions it would take me a while to figure out how it's supposed to work.

IM me if you're willing to look at this more thoroughly.


_________________
I'm Alex Plank, the founder of Wrong Planet. Follow me (Alex Plank) on Blue Sky: https://bsky.app/profile/alexplank.bsky.social