Phiên bản đầy đủ: jsB@nk » Chữ » Hoạt hóa » Chữ di chuyển
URL: https://www.javascriptbank.com/drop-it-effect.html
Một đoạn mã JavaScript khác để tạo hiệu ứng chữ di chuyển.
Phiên bản đầy đủ: jsB@nk » Chữ » Hoạt hóa » Chữ di chuyển
URL: https://www.javascriptbank.com/drop-it-effect.html
<style type="text/css"><!--#dropText {width:500px; height:100px; font-size:36px; filter:dropShadow(offX=50,offY=50)}--></style><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<script language="Javascript" type="text/javascript"><!-- Hide script from older browsersfunction doDrop(xCoord, yCoord) { if (document.all && xCoord > 1) {xCoord -= 1 yCoord -= 1 document.all.dropText.style.filter="dropShadow(offX=" + xCoord+ ", offY=" + yCoord + ")" setTimeout("doDrop(" + xCoord + "," + yCoord + ")", 100) }}// End hiding script --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<body onload="doDrop(50,50)"><div id="dropText"><b>Reload this page to run again</b><br>JavaScriptBank.com</div></body><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->