发布网友 发布时间:2022-04-29 01:13
共3个回答
懂视网 时间:2022-04-20 19:31
网页中使文字闪烁的标签是什么,其实没有html标签可以直接让文字闪烁的,需要使用js脚本来实现。代码如下:
<script language= "javascript " type= "text/javascript "> function showit() { self.setInterval( "changeit() ", 800); } function changeit() { var bg = '# '; var color = new Array( "A ", "B ", "C ", "D ", "E ", "F "); var node = document.getElementById( "con ");//#33FF33 for (var j=1; j <7; j++) { var i = Math.round(Math.random()*10); if (i> =5) { bg = bg+color[i-5]; } else { bg = bg + i; } } node.style.color = bg; } </script> </HEAD> <BODY onload= "showit(); "> <div id= "con " style= "background:#330000;color:#FF3300;width:80px;height:30px;font-size:16pt; "> lasdflasdfhalsdfaldfladhladhlasd </div> </BODY> </HTML>
热心网友 时间:2022-04-20 16:39
<div id="blink">文字</div> //●这一行是肉眼可见的div对象(★名字叫blink★),在浏览器中显示2个汉字热心网友 时间:2022-04-20 17:57
<div id="blink">文字</div>