1. Trang chủ
  2. » Trung học cơ sở - phổ thông

chuot ong gia noel

2 7 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Code ông già Noel chạy theo chột var trailimage=["http://d2.violet.vn/uploads/resources/625/Santafunny.gif", 61, 70] //image path, plus width and height var offsetfrommouse=[15,10] //im[r]

(1)Code ông già Noel chạy theo chột <script type="text/javascript"> var trailimage=["http://d2.violet.vn/uploads/resources/625/Santafunny.gif", 61, 70] //image path, plus width and height var offsetfrommouse=[15,10] //image x,y offsets from cursor position in pixels Enter 0,0 for no offset var displayduration=0 //duration in seconds image should remain visible for always if (document.getElementById || document.all) document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"><\/div>') function if return else return } if gettrailobj(){ (document.getElementById) document.getElementById("trailimageid").style (document.all) document.all.trailimagid.style function truebody(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function gettrailobj().visibility="hidden" document.onmousemove="" hidetrail(){ } function followmouse(e){ var xcoord=offsetfrommouse[0] var ycoord=offsetfrommouse[1] if (typeof e != "undefined"){ xcoord+=e.pageX ycoord+=e.pageY } else if (typeof window.event !="undefined"){ xcoord+=truebody().scrollLeft+event.clientX ycoord+=truebody().scrollTop+event.clientY } var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15 var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight) if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight) gettrailobj().display="none" else gettrailobj().display="" gettrailobj().left=xcoord+"px" gettrailobj().top=ycoord+"px" } document.onmousemove=followmouse (2) if setTimeout("hidetrail()", displayduration*1000) </script> (displayduration>0) (3)

Ngày đăng: 22/06/2021, 04:23

Xem thêm:

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w