We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22998
    • 52 Posts
    Добрый день!
    Не получается вставить вот такой код, phx не хочет отображать ява скрипты

    	  [+phx:if=`[[UltimateParent? &topLevel=`2`]]`:is=`11`:then=`<script type="text/javascript">
        //<![CDATA[
    $(document).ready(function(){
    	$('div.galery a').click(function(){
        var path = $(this).attr('href');
        $('#imgHolder').animate({opacity: 0},200,function(){
          $(this).html('<a href=' + path + '><img src=' + path + ' style="padding: 7px; min-width:330px; width:98%; background-image:url(images/kaem1.png); " /></a>').find('img').bind('load',function(){
            $(this).parent().parent().animate({opacity: 1},200);
          });
        });
      return false;
      });
    });
    		//]]>
    </script>`:else=``+]

    Помогите, пожалуйста, как вставить разные ява скрипты зависимости от родителя.