Quote:
Originally Posted by gothicuser
I will install this other mod on my test devbox and see if I can find a way to make them play nicely together.
You may have to wait until Saturday though.
|
Hi. I finally managed to prevent the conflict between multiple jquery plugins.
Here's what i did:
The original code of my other mod with jquery:
PHP Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="js/jquery.ticker.js" type="text/javascript"></script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
<script type="text/javascript">
$(function () {
$('#js-news').ticker();
});
</script>
3- Open additional.css template
4- At the end of the template ADD the following code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* StatorLatest Threads Ticker */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ticker-wrapper * {
margin-left: auto;
margin-right: auto;
}
I just added
PHP Code:
var $j = jQuery.noConflict();
code to my script and used
instead of
the final code to prevent conflicts
PHP Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="js/jquery.ticker.js" type="text/javascript"></script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(function () {
$j('#js-news').ticker();
});
</script>