<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=big5">
// JavaScript 由此開始
<SCRIPT language=JavaScript>
statId=0
var deltaX, deltaY;
posX=280
posY=250
d_fireX=50
d_fireY=20
//--------------------
function dn(){
statId=1
posX=candle.style.pixelLeft; deltaX=event.x-posX
posY=candle.style.pixelTop; deltaY=event.y-posY
}
//--------------------
function up(){
statId=0
posX=candle.style.pixelLeft;
posY=candle.style.pixelTop;
}
//--------------------
function doDrag(){
if (statId==1){
candle.style.pixelLeft=event.x-deltaX
candle.style.pixelTop =event.y-deltaY
bk.filters.light.clear()
fireX=event.x-deltaX+d_fireX
fireY=event.y-deltaY+d_fireY
bk.filters.light.addCone(fireX, fireY,200, fireX,fireY,255,255,255,99,90)
}
}
//--------------------
function init(){
bk.style.filter='light'
}
//--------------------
function glow_on(){
bk.filters.light.clear()
bk.filters.light.addCone(posX+d_fireX,posY+d_fireY,200, posX+d_fireX,posY+d_fireY, 255,255,255, 99, 90)
}
function glow_out(){
bk.filters.light.clear()
init()
}
//
</SCRIPT>
// JavaScript 到此結束
<TITLE>網頁定位特效示範</TITLE>
</HEAD>
|