Версия для слабовидящих

Шаблон:Баннеры главная — различия между версиями

Материал из Ярославский педагогический университет
Перейти к: навигация, поиск
Строка 1: Строка 1:
  
 
<html>
 
<html>
<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe>
+
<head>
width=100%
+
<meta charset="UTF-8">
height=1000px
+
<title>Document</title>
border=0
+
</head>
scroll=no
+
<body>
 +
<iframe src="https://newyspu.ru/yspu_org/" frameborder="0"></iframe>
 +
 +
<style type="text/css">
 +
iframe {
 +
position: absolute;
 +
top: 0px;
 +
left: 0px;
 +
width: 100%;
 +
height: 100%;
 +
}
 +
</style>
 +
</body>
 +
</html>
  
 
<script>
 
<script>

Версия 23:13, 17 января 2023

Document

<script> $(function() {

  $('.frame').load(function(){

var target = this; var content = $(target).contents().find('body'); $(target).height($(content).outerHeight(true));

$(content).on("DOMSubtreeModified click", function (event){ setTimeout(function(){ $(target).stop().animate({height: $(content).outerHeight(true)}, 1000); }, 700); }); }); }); </script>