鼠標軌跡,原理很簡單

鼠標軌跡,原理很簡單,第1張



網頁特傚|Linkweb.cn/Js|---鼠標軌跡,原理很簡單
圖像文件:鼠標軌跡,原理很簡單,第2張
請將此文件與網頁文件保存在同目錄下



<script language=JavaScript1.2>
var trailLength = 8;
var path ="images/cursor1.gif";
var isIE = false, isNav = false, range ="all.", style =".style", i, d = 0;
var topPix =".pixelTop", leftPix =".pixelLeft", images, storage;
if (document.layers) {
isNav = true, range ="layers.", style ="", topPix =".top", leftPix =".left";
} else if (document.all) {
isIE = true;
}
function initTrail() {
images = new Array();
for (i = 0; i < parseInt(trailLength); i ) {
images[i] = new Image();
images[i].src = path;
}
storage = new Array();
for (i = 0; i < images.length*3; i ) {
storage[i] = 0;
}
for (i = 0; i < images.length; i ) {
(isIE) ? document.write('

鼠標軌跡,原理很簡單,第3張

生活常識_百科知識_各類知識大全»鼠標軌跡,原理很簡單

0條評論

    發表評論

    提供最優質的資源集郃

    立即查看了解詳情