werwolf4,
строка 14 зачем () ?
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.hide {
display: none;
}
.parent_popup{
position: absolute;
background-color: #00FF00;
}
.red{
background-color: #FF0000;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function(){
var s = $(".parent_popup");
function display()
{
s.fadeToggle()
}
setInterval(display, 3000);
});
</script>
</head>
<body>
<div class="parent_popup hide red">parent_popup</div>
<div class="parent_popup">parent_popup2</div>
</body>
</html>