我想改变我的选框颜色这是 Html 代码
<marquee><div id="thakan">Thakaan ka Ant, Shakti Turant!!</div></marquee>
这是javascript代码
<script language="javascript" type="text/javascript">
var col=0;
function changeMarqueeColor()
{
if(col==0)
{
//document.getElementById("p2").style.color="blue";
documrnt.getElementById("thakan").style.color="yello";
col=1;
}
else
{
documrnt.getElementById("thakan").style.color="blue";
col=0;
}
}
b=setInterval("changeMarqueeColor();",500);
</script>
您也可以通过访问此链接来访问它:http: //jsfiddle.net/W4tzf/