We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34816
    • 3 Posts
    Совсем потерялся, по данной проблеме гуглил, у всех в основном наоборот конфликт... подскажите где допускаю ошибку

    <link rel="stylesheet" href="/assets/templates/site/styles/layout.css" type="text/css" />
    <script type="text/javascript" src="/assets/templates/site/scripts/jquery-1.4.1.min.js"> </script>
    <script type="text/javascript" src="/assets/templates/site/scripts/jquery.jcarousel.pack.js"></script>
    <script type="text/javascript" src="/assets/templates/site/scripts/jquery.jcarousel.setup.js"></script>

    <link media="screen" rel="stylesheet" href="/assets/templates/site/scripts/colorbox.css" />
    <script src="/assets/templates/site/scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" scr="/assets/templates/site/scripts/colorbox/jquery.colorbox.js"></script>
    <script>
    var $j = jQuery.noConflict();
    $j(document).ready(function($){
    //Examples of how to assign the ColorBox event to elements
    $j("a[rel=’example1’]").colorbox();
    $j("a[rel=’example2’]").colorbox({transition:"fade"});
    $j("a[rel=’example3’]").colorbox({transition:"none", width:"75%", height:"75%"});
    $j("a[rel=’example4’]").colorbox({slideshow:true});
    $j(".example5").colorbox();
    $j(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
    $j(".example7").colorbox({width:"80%", height:"80%", iframe:true});
    $j(".example8").colorbox({width:"50%", inline:true, href:"#inline_example1"});
    $j(".example9").colorbox({
    onOpen:function(){ alert(’onOpen: colorbox is about to open’); },
    onLoad:function(){ alert(’onLoad: colorbox has started to load the targeted content’); },
    onComplete:function(){ alert(’onComplete: colorbox has displayed the loaded content’); },
    onCleanup:function(){ alert(’onCleanup: colorbox has begun the close process’); },
    onClosed:function(){ alert(’onClosed: colorbox has completely closed’); }
    });

    //Example of preserving a JavaScript event for inline calls.
    $j("#click").click(function(){
    $j(’#click’).css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
    return false;
    });
    });
    </script>
      • 897
      • 1,620 Posts
      а зачем два раз jquery подключается? и посмотрите в FF в FireBug какую ошибку показывает в консоли.
        "Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein."

        Не используйте Revo для "просто сайтов". Используйте Evo

        Who can defeat the Russian bear?
        • 34816
        • 3 Posts
        ну вот именно если подключаю, так сказать 1 раз (следуя законам) галерея перестает листаться, а колор Бокс уже вызываеться из неё... вот тут то я и запутался, довольно таки странная ситуация)
        Единственное на что ругается FireBug:

        $j("a[rel=’example1’]").colorbox is not a function
        [Break on this error] $j("a[rel=’example1’]").colorbox();

        но я использую только example7
          • 34816
          • 3 Posts
          далее, выполнял все возможные отключения функций Quick Manager+, не помогает, вот это то и странно, а с ним все отлично, следовательно Quick Manager+ подгружает еще раз jquery
            • 897
            • 1,620 Posts
            погуглил немного, парни говорят есть такая проблема, только у всех по разному. скиньте в ЛС ссылку на проблемную страницу, будем посмотреть
              "Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein."

              Не используйте Revo для "просто сайтов". Используйте Evo

              Who can defeat the Russian bear?