Ответы в темах

Просмотр 5 ответов — с 1 по 5 (всего 5)
  • Все получилось

    <script language="javascript" type="text/javascript">
     function popUp($id){
     $div=document.getElementById($id);
      if ($div.style.display=='none') $div.style.display='block';
      else $div.style.display='none';
        }
      function show_more(){
      document.getElementById('show_more,show_more_1').style.display='none';
        }
      function hide_more(){
     document.getElementById('show_more,show_more_1').style.display='block';
          }
    	  function hide_more_1(){
     document.getElementById('show_more,show_more_1').style.display='block';
          }
      </script>
      <div>
     <p>Этот текст всегда видно</p>
                            <a id="show_more" href="javascript:popUp('show_text')" onclick="show_more();" style="cursor: pointer;"><b>Подробнее...</b></a>
                        </div>
                        <div id="show_text" style="">
                            <p>этот текст скрыт</p>
                            <a onclick="hide_more();" href="javascript:popUp('show_text')" style="cursor: pointer;"><b>Скрыть</b></a>
                        </div>
     <script language="javascript" type="text/javascript">
     popUp('show_text');
      </script>
    <div>
    <a id="show_more_1" href="javascript:popUp('show_text_1')" onclick="show_more_1();" style="cursor: pointer;"><b>Подробнее_1</b></a>
    </div>
    <div id="show_text_1" style="">
      <p>этот текст скрыт_1</p>
      <a onclick="hide_more_1();" href="javascript:popUp('show_text_1')" style="cursor: pointer;"><b>Скрыть_1</b></a>
     </div>
     <script language="javascript" type="text/javascript">
      popUp('show_text_1');
      </script>

    Ну скажите пожалуйста

    <script language="javascript" type="text/javascript">
    function popUp($id){
     $div=document.getElementById($id);
     if ($div.style.display=='none') $div.style.display='block';
      else $div.style.display='none';
       }
      function show_more(){
      document.getElementById('show_more').style.display='none';
      }
      function hide_more(){
       document.getElementById('show_more').style.display='block';
        }
     </script>
       <div>
          <p>Этот текст всегда видно</p>
      <a id="show_more" href="javascript:popUp('show_text')" onclick="show_more();" style="cursor: pointer;"><b>Открытый текст1</b></a>
       </div>
      <div id="show_text" style="">
       <p>Скрытый текст1</p>
        <a onclick="hide_more();" href="javascript:popUp('show_text')" style="cursor: pointer;"><b>Скрыть1</b></a>
      </div>
     <script language="javascript" type="text/javascript">
      popUp('show_text');
       </script>
       </script>
    
       <div>
     <a id="show_more" href="javascript:popUp('show_text_1')" onclick="show_more();" style="cursor: pointer;"><b>Открытый текст2</b></a>
       </div>
      <div id="show_text_1" style="">
       <p>Скрытый текст2</p>
        <a onclick="hide_more();" href="javascript:popUp('show_text_1')" style="cursor: pointer;"><b>Скрыть2</b></a>
      </div>
     <script language="javascript" type="text/javascript">
      popUp('show_text_1');
       </script>
       </script>

    Пытался сделать вот так но когда открываю Открытый текст 2 не видно ссылки на Открытый текст 1 и расстояние очень большое между ссылками
    Вот так
    И еще бида когда я открываю архив рубрик то там видно текст программы, но вот на главной все в порядке. Для наглядности
    Заранее большое мпасибо

    А как сделать сложный список с несколькими вкладками?

    Спасибо огромное

Просмотр 5 ответов — с 1 по 5 (всего 5)