Help with my school's Menu Please!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oliverian
Forum Newbie
Posts: 16
Joined: Thu Jan 21, 2010 1:17 pm

Help with my school's Menu Please!

Post by oliverian »

I just don't get it. We used to have a menu that worked last week, but now suddenly when I hover over the main menu, the sub menu doesn't appear. Any ideas or suggestions? My school site is http://www.oliverianschool.org.

Thanks,
Oliverian
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Help with my school's Menu Please!

Post by Technocrat »

This needs to be in the Javascript forum

Your error is caused by something in you JS on these lines:

Code: Select all

this.topitems[mainmenuid][this.topitemsindex]=menuitem //store ref to main menu links
var dropul=document.getElementById(menuitem.getAttribute('rel'))
document.body.appendChild(dropul) //move main ULs to end of document 
For what ever reason dropul comes back as null.
oliverian
Forum Newbie
Posts: 16
Joined: Thu Jan 21, 2010 1:17 pm

Re: Help with my school's Menu Please!

Post by oliverian »

Thanks for your reply, I'll move it to the javascript forum. I am still clueless as to how to fix this.
oliverian
Forum Newbie
Posts: 16
Joined: Thu Jan 21, 2010 1:17 pm

Re: Help with my school's Menu Please!

Post by oliverian »

Now I just went on my friend's computer and it worked on her chrome browser, but the menu no longer works on my IE browser. Any ideas on how to fix it?

Thanks!
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Help with my school's Menu Please!

Post by Technocrat »

I am not the best with JS debugging but I can offer you what I believe is a better solution.

Dynamic drive is ok for scripts. But there isn't support for most nor much updating. A better solution would be to use a more standard library like Jquery. There is lots of support and lots of updates. Its much more powerful and once you get it down very easy to use.

You can find a ton of menus out there with Google. You can also look at: http://www.kirill.me/personal/Jquery-Plugins.html menus are near the bottom.
Post Reply