»
AnglaisFran�aisVietnamien

Imprimer - Auto Fading DIV script - JavaScriptBank.com

Version compl�te: jsB@nk » Form » Table » Auto Fading DIV script
URL: https://www.javascriptbank.com/auto-fading-div-script.html

Auto Fading DIV script © JavaScriptBank.comCet JavaScript va créer un DIV déplacer de haut en bas et à disparaître.

Version compl�te: jsB@nk » Form » Table » Auto Fading DIV script
URL: https://www.javascriptbank.com/auto-fading-div-script.html



JavaScript
<script>var top = 0;var max =120;// Chieu dai ma dong chu chay xuongvar step = 1;// Buoc nhayvar count = 0;var alpha = 200;// Thoi gian dong chu mo divar time = 1;function advs(){ad = document.getElementById("advs");if (top + ad.clientHeight < 0) ad.style.visibility = "hidden";else {if(top >= max){if(count > time){ad.style.filter = "alpha(opacity =" + (alpha -= 5) + ")";}else count ++ ;}else {top += step += 1;ad.style.top = top;}}}time = time * 1;setInterval("advs()",200);</script> <!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<div id="advs" style="position:absolute; width:341px; border:1px solid #333333; background-color: #ffffFF; padding:2px; left: 196px; top: 13px; height: 34px;" align = "center">   <img src="../image/logojs.gif"><img src="../image/gif_logojsb2.gif">JavaScriptBank.com</div><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->