[ПОМОЩЬ]Смена фона.
:help:
Привет всем. Как мне сделать так чтобы, когда менялся фон он тоже растягивался на весь экран. 100% 100% <html> <head> <link rel="stylesheet" href="style.css" type="text/css"/> <meta charset="utf-8"> <title>G-MOD Зомби Сервер</title> <style> body { background: url(bg1.jpg) no-repeat; -moz-background-size: 100% 100%; /* Firefox 3.6+ */ -webkit-background-size: 100% 100%; /* Safari 3.1+ и Chrome 4.0+ */ -o-background-size: 100% 100%; /* Opera 9.6+ */ background-size: 100% 100%; /* Современные браузеры */ background-size: 100% 100%; background-repeat: no-repeat; } </style> </head> <body> <img src="" alt="background" id="bg" style="display:none" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script type="text/javascript" class="noprint"> var aImages = new Array(); var aURL = new Array(); var aArtists = new Array(); var iPrev = -1; var iRnd = -1; aImages[0] = "az1.jpg"; $(document).ready(function() { $("img#bg").load(function() { $("img#bg").fadeTo(2000,1); setTimeout(function() { $("#image_description").animate({right: '-=150'}, 1000); $("img#bg").fadeOut(2000); setTimeout(LoadImages,2500); } ,30000); } ) setTimeout(LoadImages,600); }); function LoadImage(iNr) { $("img#bg").attr("src", aImages[iNr]); }; function LoadImages() { /* Select a random image number and make sure this is not equal to the previous image */ while(iPrev == iRnd) { iRnd = Math.floor(Math.random()*aImages.length); } /* Show the selected image */ LoadImage(iRnd); iPrev = iRnd; }; </script> <audio autoplay > <source src="audio/tt.mp3" type="audio/mpeg"> Тег audio не поддерживается вашим браузером. <a href="audio/tt.mp3">Скачайте музыку</a>. </audio> </body> </html> |
Часовой пояс GMT +3, время: 07:13. |