<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1251" /> <title>Курс по Javascript</title> <link href="css/mystyle.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.js"></script> <script src="js/myscripts.js" type="text/javascript"></script> </head> <body> <!-- Общий div для всей в --> <div class="maindiv" id="main_div"> <!-- Блок хедера (шапка сайта) --> <div id="forheader"> <img src="images/logo.jpg" width="900" height="108" alt="Хедер" title="Шапка сайта" /> </div> <!-- Конец блока хедера --> </div> </body> </html> The problem is observed in all browsers. The hide method works, but does not accept the '3000' parameter, i.e. The selected picture is hidden immediately, but not for 3 seconds. The same problem with the show method. fadeOut() also does not work. Everything else is ok. It seems that everything that is connected with smoothness does not work. Sorry, if I did not finish something or did not attach any part of the code, I start programming only.
Here is the script file code:
$(function(){ $('img[width=900]').hide(3000); });
<script type="text/javascript" src="js/jquery.js"></script>connected<script data-require="jquery@*" data-semver="3.0.0" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>- Alexander Rudyk