你有新的消息,请注意查收,一款动态标题滚动的代码。
<script language="JavaScript"> step=0 function flash_title() { step++ if (step==3) {step=1} if (step==1) {document.title='您有新短消息 2ksn.com'} if (step==2) {document.title='请留意查收 !百度一下:2k酸奶'} setTimeout("flash_title()",800); } flash_title() </script>
网站网页标题名字流动翻滚字体效果CSS
可以令网站标题在浏览器滚动的代码,也非常有意思。
<span id="ContentArea"><html> <head> <meta charset="UTF-8"> <title></title> <script language="Javascript"> var msg="2k酸奶网滚动标题效果 " var delay=200 function scrollTitle() { window.document.title=msg msg=msg.substring(1,msg.length)+msg.substring(0,1) timeID=setTimeout("scrollTitle()",delay) } </script> </head> <body onload="scrollTitle()"> <center>2k酸奶网www.2ksn.com</center> </body> </html></span>