MyBB Community Forums

Full Version: Problem with jquery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I wanna make a jquery/css image mouse-over-hover-effect - and I successfuly did BUT
if i add:
<script type="text/javascript" src="{$mybb->settings['bburl']}./jscripts/jquery-1.6.2.js"></script>

All other jscripts on the page stop working :/
I'm not sure where and how I need to add this to work probably...

Thanks in advance!
Use this instead:

<script type="text/javascript" src="{$mybb->settings['bburl']}./jscripts/jquery-1.6.2.js"></script> 
<script type="text/javascript">jQuery.noConflict();</script>

You also might need to replace the dollar sign ($) in your scripts with "jQuery".
It's because there's a conflict between Prototype and jQuery. For more details and instructions on how to modify your JS to fix the conflict, see here: http://www.mypurebb.com/254-jquery-and-mybb/
Oh yeah that did it Big Grin
Heres the result.
Thanks you both really much for the quick answer.