js滚动文字效果

js滚动文字效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<SCRIPT LANGUAGE=javascript>
function click() {
alert('禁止你的左键复制!') }
function CtrlKeyDown(){
if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
function init(){
document.getElementById("kk").innerHTML="测试";
}
</SCRIPT>
</head>

<body onload="init();">

<marquee id="kk">这里写文字</marquee>

<marquee id=info onMouseOver=info.stop() onMouseOut=info.start() direction="up">
    <font style="宋体" size="2">                                             
        红红火火
    </font>
</marquee>

</body>
</html>

你可能感兴趣的:(js滚动文字效果)