Показать сообщение отдельно
  #9 (permalink)  
Старый 16.10.2013, 22:21
Аспирант
Отправить личное сообщение для pashin76 Посмотреть профиль Найти все сообщения от pashin76
 
Регистрация: 03.10.2009
Сообщений: 57

Пытаюсь загрузить popup
<div id="parent_popup">
  <div id="popupup">
    <div id="close" style="cursor: pointer;" onclick="document.getElementById('parent_popup').style.display='none';"></div>
    <p style='text-align: center;' class='contact-title'>ОБРАТНАЯ СВЯЗЬ</p>
  </div>
</div>


<script type="text/javascript" src="/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
$(function (){
 $("#link").click(function (event){
         event.preventDefault()
         $("#popup").html(" ").load("/test/popup2.html");
         document.getElementById("parent_popup").style.display="block";
})
})


Не появляется popup окно
Пример тут http://otvod.net/test2.php

Если делаю так, то окно появляется:
<div id="popupup">
    <div id="close" style="cursor: pointer;" onclick="document.getElementById('parent_popup').style.display='none';"></div>
    <p style='text-align: center;' class='contact-title'>ÎÁÐÀÒÍÀß ÑÂßÇÜ</p>
  </div>
Ответить с цитированием