On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Ðåøåíèå íàø¸ë ñàì )))

    Íàõîäèì ôàéë:
    manager/actions/dynamic/mutate_content.dynamic.action.php

    Îðãàíèçóåì ïîèñê "introtext", âñòàâëåì:
    âìåñòî:
    <textarea name="introtext" type="text" maxlength="64000"  class="inputBox" rows="3" style="width:550px;" onChange="documentDirty=true;">
    <?php echo htmlspecialchars(stripslashes($content['introtext']));?>
    </textarea>  <img src="media/images/icons/b02_trans.gif" onMouseover="this.src='media/images/icons/b02.gif';" onMouseout="this.src='media/images/icons/b02_trans.gif';" alt="<?php echo $_lang['document_summary_help']; ?>" onClick="alert(this.alt);" style="cursor:help;">
    
    


    <h3 style="cursor:hand" onClick="expandit(this)">
    <img src="http://www.fifateam.ru/x/img/introtext.png">
    </h3>
     <span style="display:none" style=&{head};>
      <img src="http://www.fifateam.ru/x/img/spase.gif" width="550" height="1">
    <br />
    <textarea name="introtext" type="text" maxlength="64000"  class="inputBox" rows="3" style="width:550px;" onChange="documentDirty=true;">
    <?php echo htmlspecialchars(stripslashes($content['introtext']));?>
    </textarea>  
    <img src="media/images/icons/b02_trans.gif" onMouseover="this.src='media/images/icons/b02.gif';" onMouseout="this.src='media/images/icons/b02_trans.gif';" alt="<?php echo $_lang['document_summary_help']; ?>" onClick="alert(this.alt);" style="cursor:help;">
    </span>
    



    <h3 style="cursor:hand" onClick="expandit(this)">
    <img src="http://www.fifateam.ru/x/img/introtext.png">
    </h3>

    Ýòà øòóêà àêòèâèçóåò îòêðûòèå è çàêðûòèå, âñåãî ÷òî íàõîäèòñÿ ìåæäó òåãàìè
    <span style="display:none" style=&{head};>

    </span>

    ß èñïîëüçîâàë
    <img src="http://www.fifateam.ru/x/img/introtext.png">


    Ïîòîì â ñàìîì òåëå äîêóìåíòà íóæíî âñòàâèòü javascript
    <script language="JavaScript1.2">
    <!--
    
    var ns6=document.getElementById&&!document.all?1:0
    
    var head="display:''"
    var folder=''
    
    function expandit(curobj){
    folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
    if (folder.display=="none")
    folder.display=""
    else
    folder.display="none"
    }
    
    //-->
    </script>


    ß âñòàâèë javascript ïîñëå òåãà <style>..... </style>

    Íó è òåïåðü âñ¸ Ïðåëåñòíî))) Ìîÿ äóøåíüêà äîâîëüíà!)))
      Разработка сайтов на MODx
    • Âîò åù¸ ÷òî!

      Ó ìåíÿ âîçíèêëà òàêàÿ ñèòóàöèÿ â FF (íå òåñòèë â IE):

      Ñðàçó êàê òîëüêî ðàçâîðà÷èâàåòñÿ ïîëå "introtext" ïèñàòü â í¸ì ó ìåíÿ íå ïîëó÷èëîñü. È ëèøü íàæàâ íà "Èñòî÷íèê" è ââåäÿ ïàðó ñèìâîëîâ ìîæíî ââåðíóòñÿ ê ïàíåëè èíñòðóìåíòîâ FCKeditor-à è ïðîäîëæèòü ðåäàêòèðîâàíèå.
        Разработка сайтов на MODx
      • Ñïàñèáî áîëüøîå íèòðî! Áóäåì èñïîëüçîâàòü! grin
        • Quote from: nitro[F.com
          link=topic=8789.msg66693#msg66693 date=1164813988]
          <h3 style="cursor:hand" onClick="expandit(this)">
          <img src="http://www.fifateam.ru/x/img/introtext.png">
          </h3>
          Âîò ýòó âîò øòóêó ÿ èñïîëüçîâàë äëÿ àêòèâèçàöèè ðàçâîðà÷èâàíèÿ è ñâîðà÷èâàíèÿ "introtext"


          Åñëè èñïîëüçîâàòü ðèñóíîê êàê ó ìåíÿ, òî íå ðàáîòàåò â IE

          Ðåøåíèå ñëåäóþùåå: Âìåñòî ðèñóíêà èñïîëüçîâàòü ïðîñòî òåêñò
            Разработка сайтов на MODx