It's taken me a long time trying to fix this and I still haven't found out how to do it. My knowledge of javascript/jquery isn't great but for the website I'm building I tried experimenting with some, reused some code (reuse was allowed by author) for a content gallery and a menu bar which has a slider that moves left and right to highlight each of the menu headings.

When both of them are on then the first one (menu bar) doesn't work on my pages. I've searched online and people say this can happen when someone has more than one time "onload" on their index (main) page. I don't have this...

Any suggestions?

I can post the code but it's a bit long and spans over several files so I haven't posted it. But if someone wants I will put it here too.

both scripts are using the same name variable -the seccond one overwrites the value of the first - therefore the first one will stop functioning because of the wrong value assigned by the second script.

find it; rename it; solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.