现在的位置: 网页制作教程网站制作教程 >正文
JS特效教程

JS文字闪烁的代码

发表于2017/3/20 网站制作教程 0条评论 ⁄ 热度 1,957℃

js使文字闪烁的代码:

var t=false;
setInterval("flash_title()",300);
function flash_title(){
 if(t){
  document.title='☆';
  t=false;
 }else{
  document.title='★';
  t=true;
 }
}
  • 暂无评论