語法展示:: http://home.graffiti.net/lghfggfhgf/
請用IE6.0或更新版本觀看語法特效展示
將以下程式碼複製,貼在<body>及</body>標籤之間。
<div class=type1 id=cursor style="WIDTH: 120px; HEIGHT: 120px"></div>
<div class=type1 id=cursor style="WIDTH: 110px; HEIGHT: 110px"></div>
<div class=type1 id=cursor style="WIDTH: 100px; HEIGHT: 100px"></div>
<div class=type1 id=cursor style="WIDTH: 90px; HEIGHT: 90px"></div>
<div class=type1 id=cursor style="WIDTH: 80px; HEIGHT: 80px"></div>
<div class=type1 id=cursor style="WIDTH: 70px; HEIGHT: 70px"></div>
<div class=type1 id=cursor style="WIDTH: 60px; HEIGHT: 60px"></div>
<div class=type1 id=cursor style="WIDTH: 50px; HEIGHT: 50px"></div>
<div class=type1 id=cursor style="WIDTH: 40px; HEIGHT: 40px"></div>
<div class=type1 id=cursor style="WIDTH: 30px; HEIGHT: 30px"></div>
將以下程式碼複製,貼在<head>及</head>標籤之間。
<script language=JavaScript>
<!--
var i = 0
function moveCursor() {
++i
if(i == 10) {
i = 0
}
cursor.item(i).style.pixelLeft = event.clientX - cursor.item(i).style.pixelWidth/2
cursor.item(i).style.pixelTop = event.clientY - cursor.item(i).style.pixelHeight/2
cursor.item(i).style.visibility = "visible"
}
document.onmousemove = moveCursor
var j = 0
function disappear() {
++j
if(j == 10) {
j = 0
}
if(cursor.item(j).style.visibility == "visible") {
cursor.item(j).style.visibility = "hidden"
}
}
-->
</script>
<style type=text/css>
<!--
.type1 {
BORDER-RIGHT: lime 1px solid; BORDER-TOP: lime 1px solid; VISIBILITY: hidden; BORDER-LEFT: lime 1px solid; BORDER-BOTTOM: lime 1px solid; POSITION: absolute
}
-->
</style>
將以下程式碼複製,貼在<body >標籤裡面。
onLoad="setInterval('disappear()',30)"
留言列表