js 公告栏表格文字滚动时,文字不闪,但边框总是闪烁怎么解决

JavaScript011

js 公告栏表格文字滚动时,文字不闪,但边框总是闪烁怎么解决,第1张

点击这里!functiontext(){if(document.getElementById('id1').style.color=="red"){document.getElementById('id1').style.color=="block"}else{document.getElementById('id1').style.color=="red"}}

这个可以用js实现,主要就是不断的更换边框的颜色

这个直接放到代码里面 可以用的  你试试看吧

<table border="0" width="280" id="myexample" style="border:5px solid green">

<tr><td>源码爱好者与您分享编程源码、网站源码、网页素材、书籍教程、网站模板、网页特效代码等,做高质量的学习型源码下载站。

<br></td>

</tr>

</table>

<script language="JavaScript1.2">

<!--

function flashit(){

var myexample = document.getElementById('myexample')

if (myexample.style.borderColor=="green")

myexample.style.borderColor="red"

else

myexample.style.borderColor="green"

}

setInterval("flashit()", 500)